move prefix to config.toml

This commit is contained in:
yuki 2025-10-09 00:19:22 -03:00
parent ef4be976fb
commit 0664529c70
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
prefix = "!"
token = "NerimityTokenHere" token = "NerimityTokenHere"
owner_id = 1234567890 owner_id = 1234567890
api_key = "LastFmApiKeyHere" api_key = "LastFmApiKeyHere"

View file

@ -6,7 +6,7 @@ with open("config.toml", "rb") as f:
config = tomllib.load(f) config = tomllib.load(f)
bot = bot.Bot( bot = bot.Bot(
prefix = '!', prefix = config['prefix'],
token = config['token'], token = config['token'],
owner_id = config['owner_id'], owner_id = config['owner_id'],
lastfm_api_key = config['api_key'], lastfm_api_key = config['api_key'],