Compare commits
No commits in common. 'd76a965e7508af5caeb7a1ac660751436384bc73' and '979e15f525eaba9052f4b78c43330ef0e66919a4' have entirely different histories.
d76a965e75
...
979e15f525
@ -1,19 +1,8 @@ |
|||||||
'''Essentials for the bot to function''' |
# Essential for the bot to function |
||||||
import configparser |
INSTANCE = "" # Bots Misskey instance's URL **with schema** |
||||||
config = configparser.ConfigParser() |
KEY = "" # API key for the bot |
||||||
config.read('config.ini') |
|
||||||
|
# Extra stuff for control of the bot |
||||||
# Username for the bot |
ADMINS = [] # Fedi handles in the traditional 'user@domain.tld' style, |
||||||
USER = config['application']['BotUser'] |
# allows these users to use extra admin exclusive commands |
||||||
|
# with the bot |
||||||
# API key for the bot |
|
||||||
KEY = config['application']['ApiKey'] |
|
||||||
# Bot's Misskey instance URL |
|
||||||
INSTANCE = config['application']['InstanceUrl'] |
|
||||||
|
|
||||||
# Extra stuff for control of the bot |
|
||||||
|
|
||||||
# TODO: move this to db |
|
||||||
# Fedi handles in the traditional 'user@domain.tld' style, allows these users |
|
||||||
# to use extra admin exclusive commands with the bot''' |
|
||||||
ADMINS = config['application']['DefaultAdmins'] |
|
||||||
|
@ -1,14 +0,0 @@ |
|||||||
; Rename me to config.ini and put your values in here |
|
||||||
[application] |
|
||||||
; Full fedi handle of the bot user |
|
||||||
BotUser = @bot@example.tld |
|
||||||
|
|
||||||
; API key for the bot |
|
||||||
; Generate one by going to Settings > API > Generate access token |
|
||||||
ApiKey = abcdefghijklmnopqrstuvwxyz012345 |
|
||||||
|
|
||||||
; Fully qualified URL of the instance hosting the bot |
|
||||||
InstanceUrl = http://example.tld |
|
||||||
|
|
||||||
; Comma separated list of fedi handles for any administrator users |
|
||||||
DefaultAdmins = ['admin@example.tld'] |
|
Loading…
Reference in new issue