-
-
Save jayktaylor/8cf64f91fec73ba0bd127a08f6578988 to your computer and use it in GitHub Desktop.
async def cmd_ping(self): | |
""" | |
Usage: | |
{command_prefix}ping | |
Ping command to test latency | |
""" | |
return Response("Pong!") |
dont work for me
I can confirm this does work, I actually edited the code a bit, so that when !invite is typed, it reply's with a link to click to invite the bot to your own server.
Make sure your spacing in correct. Just place then between commands.
Just put it at the end but not after if name == 'main':
bot = MusicBot()
bot.run()
I'm having trouble with this I want to get this command to say the ping that the bot has to the voice channel in server can anyone help me with that
Hey, can i get it to say the ping that the bot has to the server? Any help would be appreciated!
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!
kutet how?
@TitanCruze use spaces instead of tabs when you put the code in
I suppose you already got an answer, but in case you're always searching, you must put this code into bot.py, between random cmd_ functions