mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
BotControl: don't crash on global reaction role refresh errors
This commit is contained in:
parent
9bab943f45
commit
7ced26cd19
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
import { decorators as d, GlobalPlugin } from "knub";
|
||||
import child_process from "child_process";
|
||||
import { GuildChannel, Message, TextChannel } from "eris";
|
||||
import { createChunkedMessage, errorMessage, sleep, sorter, successMessage } from "../utils";
|
||||
import { createChunkedMessage, errorMessage, noop, sleep, sorter, successMessage } from "../utils";
|
||||
import { ReactionRolesPlugin } from "./ReactionRoles";
|
||||
|
||||
let activeReload: [string, string] = null;
|
||||
|
@ -91,7 +91,7 @@ export class BotControlPlugin extends GlobalPlugin {
|
|||
for (const guild of guilds) {
|
||||
if (guild.loadedPlugins.has("reaction_roles")) {
|
||||
const rrPlugin = guild.loadedPlugins.get("reaction_roles") as ReactionRolesPlugin;
|
||||
rrPlugin.runAutoRefresh();
|
||||
rrPlugin.runAutoRefresh().catch(noop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue