Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.event
- async def on_message(message):
- if message.content.lower().startswith('a!ping'):
- timep = time.time()
- emb = discord.Embed(title='Aguarde', color=0x565656)
- pingm0 = await client.send_message(message.channel, embed=emb)
- ping = time.time() - timep
- pingm1 = discord.Embed(title='Pong!', description=':ping_pong: Ping - %.01f segundos' % ping, color=0x00000)
- await client.edit_message(pingm0, embed=pingm1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement