mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 06:11:49 +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 { decorators as d, GlobalPlugin } from "knub";
|
||||||
import child_process from "child_process";
|
import child_process from "child_process";
|
||||||
import { GuildChannel, Message, TextChannel } from "eris";
|
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";
|
import { ReactionRolesPlugin } from "./ReactionRoles";
|
||||||
|
|
||||||
let activeReload: [string, string] = null;
|
let activeReload: [string, string] = null;
|
||||||
|
@ -91,7 +91,7 @@ export class BotControlPlugin extends GlobalPlugin {
|
||||||
for (const guild of guilds) {
|
for (const guild of guilds) {
|
||||||
if (guild.loadedPlugins.has("reaction_roles")) {
|
if (guild.loadedPlugins.has("reaction_roles")) {
|
||||||
const rrPlugin = guild.loadedPlugins.get("reaction_roles") as ReactionRolesPlugin;
|
const rrPlugin = guild.loadedPlugins.get("reaction_roles") as ReactionRolesPlugin;
|
||||||
rrPlugin.runAutoRefresh();
|
rrPlugin.runAutoRefresh().catch(noop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue