Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified __pycache__/error_handler.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/help_command.cpython-38.pyc
Binary file not shown.
14 changes: 13 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added imagenes/colmillo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.