Yves/main.py

25 lines
507 B
Python

import tomllib
import bot
with open("config.toml", "rb") as f:
config = tomllib.load(f)
# nerimity client
bot = bot.Bot(
prefix = '!',
token = config['token'],
owner_id = config['owner_id'],
lastfm_api_key = config['api_key'],
lastfm_api_secret = config['api_secret'],
catbox_hash = config['catbox_hash']
)
bot.load_commands("commands")
@bot.listen("on_ready")
async def on_ready(params):
print(f"Logged in as {bot.account.username}")
await bot.init_db()
bot.run()