diff --git a/__pycache__/error_handler.cpython-38.pyc b/__pycache__/error_handler.cpython-38.pyc index 72db757..c0d0b3f 100644 Binary files a/__pycache__/error_handler.cpython-38.pyc and b/__pycache__/error_handler.cpython-38.pyc differ diff --git a/__pycache__/help_command.cpython-38.pyc b/__pycache__/help_command.cpython-38.pyc index 33feff2..b3cd980 100644 Binary files a/__pycache__/help_command.cpython-38.pyc and b/__pycache__/help_command.cpython-38.pyc differ diff --git a/bot.py b/bot.py index 813ef59..368791e 100644 --- a/bot.py +++ b/bot.py @@ -21,12 +21,24 @@ #Group command help client.remove_command("help") client.load_extension("help_command") - +#Error Handler client.load_extension('error_handler') +#Server ID +server_ID=821699949493485578 #Event when connected @client.event async def on_ready(): + embed=discord.Embed(title="Colmillo conectado!", description="Colmillo es un bot de Discord creado por la "+ + "OE ITAM4Code para facilitar la administración del servidor. Para utilizarlo invócalo con **--help**") + #file=discord.Fileembed.set_image(url='attachment://imagenes/colmillo.jpg') + embed.set_footer(text="Hello world!") + embed.set_author(name="ITAM4Code") + embed.set_thumbnail(url='attachment://colmillo.jpg') + guild=get(client.guilds,id=server_ID) + channel=get(guild.text_channels,name='general') + file1=discord.File("imagenes/colmillo.jpg") + await channel.send(embed=embed,file=file1) await client.change_presence(status=discord.Status.online, activity=discord.Game('ITAM4Code')) #Version command diff --git a/imagenes/colmillo.jpg b/imagenes/colmillo.jpg new file mode 100644 index 0000000..9a2b967 Binary files /dev/null and b/imagenes/colmillo.jpg differ