Generation

generate functionSat, 22 Apr 2023

como hacer un bot de discord

import discord from discord.ext import commands bot = commands.Bot(command_prefix='!') @bot.event async def on_ready(): print('Logged in as') print(bot.user.name) print(bot.user.id) print('------') @bot.command() async def add(ctx, a: int, b: int): await ctx.send(a+b) @bot.command() async def multiply(ctx, a: int, b: int): await ctx.send(a*b) @bot.command() async def greet(ctx): await ctx.send(":smiley: :wave: Hello, there!") @bot.command() async def cat(ctx): await ctx.send("https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif") @bot.command() async def info(ctx): embed =

Questions about programming?Chat with your personal AI assistant