thecatcore / Fabric---Discord-Link

MIT License
75 stars 31 forks source link

commandPrefix doesn't work #147

Closed EncryptedCoder closed 3 years ago

EncryptedCoder commented 3 years ago

Describe the bug

"chatChannels": { "commandPrefix": "!s", .......continues with rest of code but isn't the problem }, the commandPrefix isn't working in the way at least I am expecting it to. I'm pretty sure it is supposed to make it so I have to type **a prefix set by me such as !s in discord before the bot/webhook will relay the message to the server. But it relays the message with or without this prefix.

I have two servers one creative and one survival using the same bot/webhook in the same channel and I want to have to type !s to speak to the survival server and then use !c in the other config file to speak to the creative server. Both servers are running at the same time using different rule sets and mods.

Reproduction steps

  1. turn on the servers with their own "commandPrefix"
  2. Use corresponding prefix
  3. bot relays message to both servers even though both set up to use a different prefix.
  4. bot also relays message to both servers using NO prefix though is set up in the config.

Expected behavior when using say !c message in the discord channel used by the bot ... the message should only be sent to the creative server and not both.

Additional context

had to change the file to a .txt. it wouldn't let me upload it as a .json fdlink.txt