feat(command): ✨ fix to show web (including extra [MODE]) messages
There's no way to remove `bot.addChatPattern`, so only does once on load
This commit is contained in:
@@ -121,6 +121,8 @@ bot.once("spawn", () => {
|
||||
|
||||
cfg.plugins = plugins
|
||||
cfg.botAddressRegex = new RegExp(`^${bot.username} (${cfg.botAddressPrefix}.+)`)
|
||||
// FIXME leaks every load, so adding here instead of command.js to load only once
|
||||
bot.addChatPattern("web", /\[WEB\] (\[.+\])?\s*([\w.]+): (.+)/, { parse: true })
|
||||
|
||||
for (const plugin of Object.values(plugins)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user