move prefix to config.toml
This commit is contained in:
parent
ef4be976fb
commit
0664529c70
2 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
prefix = "!"
|
||||||
token = "NerimityTokenHere"
|
token = "NerimityTokenHere"
|
||||||
owner_id = 1234567890
|
owner_id = 1234567890
|
||||||
api_key = "LastFmApiKeyHere"
|
api_key = "LastFmApiKeyHere"
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -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'],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue