mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-18 17:34:58 +00:00
22 lines
495 B
Python
22 lines
495 B
Python
import discord
|
|
from discord.ext import commands
|
|
from discord import app_commands
|
|
from config import DISCORD_TOKEN, DISCORD_GUILD_ID
|
|
from commands import hello
|
|
|
|
|
|
bot = commands.Bot(intents=discord.Intents.all(), command_prefix=":")
|
|
bot.add_cog(hello.Hello(bot))
|
|
|
|
|
|
@bot.event
|
|
async def on_ready():
|
|
user = bot.user
|
|
guild = bot.guilds[0]
|
|
|
|
print(f"Logged in as {user} (ID: {user.id})")
|
|
print(f"Guild: {guild} (ID: {guild.id})")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
bot.run(DISCORD_TOKEN)
|