ninaapp/main.py
2025-05-04 18:15:42 -04:00

25 lines
695 B
Python

import discord
from discord.ext import commands
from dotenv import load_dotenv
import os
load_dotenv()
class Vaius(commands.Bot):
async def on_ready(self):
print(f"Logged in as {self.user.name}")
async def on_message(self, message: discord.Message):
if (message.guild and message.guild.id != 1362175947612098892) and message.channel.id != 1363685774800978074:
return
ctx = await self.get_context(message)
if ctx.valid:
await self.invoke(ctx)
@Vaius.command
async def ping(self, ctx):
await ctx.reply("Pong!")
client = Vaius(command_prefix="v", user_bot=True, chunk_guilds_at_startup=False)
client.run(os.getenv("TOKEN"))