Untitled
unknown
plain_text
2 years ago
918 B
5
Indexable
import nextcord from nextcord.ext import commands from cmds import ping,prefix import os BOT_TOKEN = 'MTA5NzEzNzUzMDg3ODU3NDY2NA.G-JZ-b.pK-bR_8wWsBt4ouhUO9CrHaqz-vJlON8srIjuk' PREFIX = '!' intents = nextcord.Intents.default() intents = nextcord.Intents.all() client = commands.Bot(command_prefix=PREFIX, intents=intents) @client.event async def on_ready(): print('Logged with',client.user.name) @client.event async def on_message(message): if message.author == client.user: return if not message.content.startswith(PREFIX): return args = message.content.split(PREFIX)[1] cmd = args.lower() if cmd == 'ping': await ping.Latency(client=client,message=message) if cmd == 'prefix': await prefix.prefix(client,message,PREFIX) if __name__ == '__main__': client.run(BOT_TOKEN)
Editor is loading...