diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ceb386 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv diff --git a/config.ini b/config.ini new file mode 100644 index 0000000..0c74834 --- /dev/null +++ b/config.ini @@ -0,0 +1,8 @@ +[AUTH] +token = + +[BOT] +name = + +[DEBUG] +loglevel = WARNING \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..7f06489 --- /dev/null +++ b/main.py @@ -0,0 +1,21 @@ +from configparser import ConfigParser +import logging +from discord import Client +import sys + +# read config at default location +# ./config.ini +config = ConfigParser() +try: + config.read_file(open("config.ini")) +except FileNotFoundError: + logging.critical("Unable to locate the configuration file.") + sys.exit(1) + +# spawn discord client instance +# init token from config +bot = Client() +token = config['AUTH']['token'] + +if __name__ == "__main__": + bot.run() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1bcb522 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +# Discord API Wrapper +discord.py == 1.5.1 +# Database ORM +peewee == 3.14.0 +# Language detection +langdetect == 1.0.8 \ No newline at end of file diff --git a/src/commands/__init__.py b/src/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/database/__init__.py b/src/database/__init__.py new file mode 100644 index 0000000..e69de29