From ababf4f8385d1fdd7b91dbc4632d23d9521e4ccd Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 16 May 2025 17:55:33 -0500 Subject: [PATCH 1/3] add misskey.py to requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) 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 From add9f4b1910a8b8010ce898cddb865b7f48edd3d Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 16 May 2025 18:35:55 -0500 Subject: [PATCH 2/3] remove client.py from gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) 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 From 640c68a81aaa3075e53ad39cc2490fe214f77f31 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 16 May 2025 18:43:36 -0500 Subject: [PATCH 3/3] add config for bot --- bot/client.py | 5 +++++ bot/config.py | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 bot/client.py create mode 100644 bot/config.py 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