Add music

This commit is contained in:
Michał Gdula 2023-09-07 15:02:11 +01:00
parent 640351e5bf
commit bafe17e0d4
6 changed files with 276 additions and 22 deletions

View file

@ -1,22 +1,27 @@
import asyncio
import discord
from discord.ext import commands
from discord import app_commands
from config import DISCORD_TOKEN, DISCORD_GUILD_ID
from commands import hello
from config import DISCORD_TOKEN
from commands import Hello, Music
bot = commands.Bot(intents=discord.Intents.all(), command_prefix=":")
bot.add_cog(hello.Hello(bot))
lynxie = commands.Bot(
intents=discord.Intents.all(),
command_prefix="AAAA ",
)
@bot.event
@lynxie.event
async def on_ready():
user = bot.user
guild = bot.guilds[0]
print(f"Logged in as {lynxie.user} (ID: {lynxie.user.id})")
print(f"Logged in as {user} (ID: {user.id})")
print(f"Guild: {guild} (ID: {guild.id})")
async def run():
async with lynxie:
await lynxie.add_cog(Hello(lynxie))
await lynxie.add_cog(Music(lynxie))
await lynxie.start(DISCORD_TOKEN)
if __name__ == "__main__":
bot.run(DISCORD_TOKEN)
asyncio.run(run())