-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
128 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
App Name: 'ce-discord-bot' | ||
Color: '#0D9488' | ||
Color: '#0D9488' | ||
Admins: | ||
- "657938099581616139" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BotConfig } from "@src/types"; | ||
import { Message } from "discord.js"; | ||
import { reconnectWebsocket } from ".."; | ||
const BotInfo: BotConfig = loadYaml("bot/info.yml") | ||
|
||
export const event = { | ||
name: "messageCreate", | ||
async execute(message: Message) { | ||
if (message.content == "!ws reload" && BotInfo.Admins.includes(message.author.id)) { | ||
message.reply("Restarting websockets.") | ||
await reconnectWebsocket() | ||
message.reply("Websocket should be up. See the console.") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters