From bb5c0e28f53bcb35025549a82a21650dffd4426e Mon Sep 17 00:00:00 2001 From: hippoz Date: Tue, 8 Dec 2020 01:21:10 +0200 Subject: [PATCH] yaay not testing commits! --- libbrainlet/bridgebot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbrainlet/bridgebot.js b/libbrainlet/bridgebot.js index 69b3f5a..8d13b1d 100644 --- a/libbrainlet/bridgebot.js +++ b/libbrainlet/bridgebot.js @@ -13,7 +13,7 @@ const ADMIN_ID = '5fc828ea4e96e00725c17fd7'; let discordWebhook; const main = async () => { - const client = new Client('http://localhost:3000', { + const client = new Client('https://b.hippoz.xyz', { throwErrors: true }); const discord = new Discord.Client(); @@ -64,7 +64,7 @@ const main = async () => { client.gateway.on('message', async (e) => { if (e.author._id === client.user._id) return; - e.content = e.content.replaceAll('@', ''); + e.content = e.content.replace(/@/g, ''); await discordWebhook.send(e.content, { username: e.author.username