forked from hippoz/brainlet
yaay not testing commits!
This commit is contained in:
parent
5c804f1a03
commit
bb5c0e28f5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue