Small fixes.

This commit is contained in:
OK 2023-03-22 11:31:38 +01:00
parent 9b75926bc3
commit 7af0a7aa81
5 changed files with 15 additions and 2 deletions

10
config.json Normal file
View 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
View File

@ -0,0 +1,4 @@
import sys
from .discord_bot import main
sys.exit(main())

View File

@ -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.')

View 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 -)"