diff --git a/.gitignore b/.gitignore index 4d3cf3d..72230f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /venv/* gacha_game.db __pycache__/ -bot/client.py \ No newline at end of file diff --git a/bot/client.py b/bot/client.py new file mode 100644 index 0000000..2413226 --- /dev/null +++ b/bot/client.py @@ -0,0 +1,5 @@ +import misskey +import config + +def client_connection(): + return misskey.Misskey(address=config.INSTANCE, i=config.KEY) diff --git a/bot/config.py b/bot/config.py new file mode 100644 index 0000000..408cb53 --- /dev/null +++ b/bot/config.py @@ -0,0 +1,8 @@ +# Essential for the bot to function +INSTANCE = "" # Bots Misskey instance's URL **with schema** +KEY = "" # API key for the bot + +# Extra stuff for control of the bot +ADMINS = [] # Fedi handles in the traditional 'user@domain.tld' style, + # allows these users to use extra admin exclusive commands + # with the bot diff --git a/requirements.txt b/requirements.txt index b3e1228..1db6f9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ itsdangerous==2.2.0 Jinja2==3.1.6 MarkupSafe==3.0.2 Werkzeug==3.1.3 +Misskey.py==4.1.0