Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
48

Discord Commands

ReshiramWolfu
ReshiramWolfu

I want to make a discord bot respond to commands, and i have this code so far, can anyone help me do a command so that it will respond to anything after an exclamation mark, like this !respond
https://repl.it/@ReshiramWolfu/Alter-Ego-Bot-Discord

4 years ago
You are viewing a single comment. View All
1
Textcrafter101
Textcrafter101

you could do something like this:
if message.content.startswith('!'): (for some reason it wouldn't let me go to the next line) await message.channel.send('this is where the stuff you want it to say would be')
if this helps, please upvote, though you've probably already gotten an answer since this was from 3 years ago

10 months ago