fix bot responding to it's own commands
This commit is contained in:
parent
07306a47ea
commit
9648e63adb
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ export default class Commands {
|
|||
}
|
||||
|
||||
#onChat(username, message) {
|
||||
if (username === this.#client.username) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!message.startsWith(this.#prefix)) {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue