From 640c68a81aaa3075e53ad39cc2490fe214f77f31 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 16 May 2025 18:43:36 -0500 Subject: [PATCH] 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