mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-29 14:53:15 +00:00
Add music
This commit is contained in:
parent
640351e5bf
commit
bafe17e0d4
6 changed files with 276 additions and 22 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue