Yves/main.py
2025-10-07 03:09:25 -03:00

24 lines
447 B
Python

import tomllib
import nerimity
import bot
with open("config.toml", "rb") as f:
config = tomllib.load(f)
# nerimity client
bot = bot.Bot(
prefix = '!',
token = config['token'],
lastfm_api_key = config['api_key'],
lastfm_api_secret = config['api_secret']
)
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()