Skip to content

Instantly share code, notes, and snippets.

@jayktaylor
Last active December 11, 2017 10:07
Show Gist options
  • Save jayktaylor/8cf64f91fec73ba0bd127a08f6578988 to your computer and use it in GitHub Desktop.
Save jayktaylor/8cf64f91fec73ba0bd127a08f6578988 to your computer and use it in GitHub Desktop.
MusicBot - Ping command
async def cmd_ping(self):
"""
Usage:
{command_prefix}ping
Ping command to test latency
"""
return Response("Pong!")
@FIERCEDINO080
Copy link

Hey, can i get it to say the ping that the bot has to the server? Any help would be appreciated!

@Kutet
Copy link

Kutet commented Jun 20, 2017

I'm confused, I put the code in, but whenever I attempt to run the bot, there's always text showing the beginning of the code and says: "TabError: Inconsistent use of tabs and spaces in indentation" And I have no idea what that means,

any help is greatly appreciated!

edit: I got it to work!

Copy link

ghost commented Jul 22, 2017

kutet how?

@aplotor
Copy link

aplotor commented Dec 11, 2017

@TitanCruze use spaces instead of tabs when you put the code in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment