I have simple music bot but it says this:"RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited bot.load_extension('dismusic') RuntimeWarning: Enable tracemalloc to get the object allocation traceback"
" RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited bot.load_extension('dch') RuntimeWarning: Enable tracemalloc to get the object allocation traceback "
Code:
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='>', intents=intents)
bot.lava_nodes = [
{
'host': 'lava.link',
'port': 80,
'rest_uri': f'http://lava.link:80',
'indetifier': 'MAIN',
'password': 'anything',
'region': 'singapore'
}
]
@bot.event
async def on_ready():
print('Bot is ready')
bot.load_extension('dismusic')
bot.load_extension('dch')
bot.run("OTg5OTI5Mjkxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");