Small fixes.
This commit is contained in:
parent
9b75926bc3
commit
7af0a7aa81
10
config.json
Normal file
10
config.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ "openai_key": "OPENAIKEY",
|
||||||
|
"discord_token": "DISCORDTOKEN",
|
||||||
|
"model": "gpt-4",
|
||||||
|
"max_tokens": 1024,
|
||||||
|
"temperature": 0.9,
|
||||||
|
"top-p": 1.0,
|
||||||
|
"presence-penalty": 1.0,
|
||||||
|
"frequency-penalty": 1.0,
|
||||||
|
"history-limit": 10,
|
||||||
|
"system": "You are an smart AI" }
|
||||||
4
fjerkroa_bot/__main__.py
Normal file
4
fjerkroa_bot/__main__.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import sys
|
||||||
|
from .discord_bot import main
|
||||||
|
|
||||||
|
sys.exit(main())
|
||||||
@ -75,7 +75,7 @@ class FjerkroaBot(commands.Bot):
|
|||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
from .logging import setup_logging
|
from .bot_logging import setup_logging
|
||||||
setup_logging()
|
setup_logging()
|
||||||
parser = argparse.ArgumentParser(description='Fjerkroa AI bot')
|
parser = argparse.ArgumentParser(description='Fjerkroa AI bot')
|
||||||
parser.add_argument('--config', type=str, default='config.json', help='Config file.')
|
parser.add_argument('--config', type=str, default='config.json', help='Config file.')
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
export HOME=/home/pi
|
|
||||||
export PATH=$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
|
export PATH=$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
|
||||||
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
|
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user