Ask coding questions

← Back to all posts
Adding a prefix
GracioussBoww

Im trying to add a prefix to my bot in which I keep getting an error message of the one below, if anyone can help me figure this out it'd be greatly appreciated.

Answered by WWEMONSTERMONST [earned 5 cycles]
View Answer
Voters
GracioussBoww
Comments
hotnewtop
WWEMONSTERMONST

As you have your prefix in json file, you have to import it from there. It can be done by using following code:

GracioussBoww

@WWEMONSTERMONST

Thank you ever so much for helping me there, it worked

Coder100

send repl