FUCK YOU
This commit is contained in:
parent
aba50ff519
commit
78c9e1e3b5
|
@ -2,7 +2,7 @@ var WebSocket = require('ws');
|
|||
var Discord = require('discord.js');
|
||||
var createWsMessageCollector = require('./datacollector');
|
||||
|
||||
var webhook = new Discord.WebhookClient({url: config.webhooks.ddp});
|
||||
var webhook = new Discord.WebhookClient({url: config.webhooks.ddp, allowedMentions: {parse: []}});
|
||||
|
||||
var ws;
|
||||
var wasConnected = false;
|
||||
|
|
5
main.js
5
main.js
|
@ -7,12 +7,13 @@ global.Discord = require('discord.js');
|
|||
global.fs = require('fs');
|
||||
global.dClient = new Discord.Client({
|
||||
intents: 32767,
|
||||
restRequestTimeout: 5*60*1000
|
||||
restRequestTimeout: 5*60*1000,
|
||||
allowedMentions: {parse: []}
|
||||
});
|
||||
|
||||
// error handling
|
||||
{
|
||||
let webhook = new Discord.WebhookClient({url: config.webhooks.error});
|
||||
let webhook = new Discord.WebhookClient({url: config.webhooks.error, allowedMentions: {parse: []}});
|
||||
global.handleError = function logError(error, title) {
|
||||
let msg = error && (error.stack || error.message || error);
|
||||
console.error(title + ':\n' + msg);
|
||||
|
|
2
misc.js
2
misc.js
|
@ -1,6 +1,6 @@
|
|||
// join/leave
|
||||
(async function(){
|
||||
var webhook = new Discord.WebhookClient({url: config.webhooks.welcome});
|
||||
var webhook = new Discord.WebhookClient({url: config.webhooks.welcome, allowedMentions: {parse: []}});
|
||||
dClient.on('guildMemberAdd', async member => {
|
||||
if (member.guild.id != config.guildID) return;
|
||||
let username = member.user.username.toLowerCase().includes('clyde') ? member.user.username.replace(/C/g,'Q').replace(/c/g,'q') : member.user.username;
|
||||
|
|
Loading…
Reference in New Issue