Another one from the phone bois
This commit is contained in:
parent
77cc592161
commit
01d0b84dc9
4
index.js
4
index.js
|
@ -6,7 +6,7 @@ const Discord = require("discord.js");
|
||||||
const bot = new Discord.Client({intents: ["GuildMessages", "Guilds", "MessageContent"]});
|
const bot = new Discord.Client({intents: ["GuildMessages", "Guilds", "MessageContent"]});
|
||||||
const ring_hook = new Discord.WebhookClient({"url": config.discord.ring_webhook});
|
const ring_hook = new Discord.WebhookClient({"url": config.discord.ring_webhook});
|
||||||
const notif_hook = new Discord.WebhookClient({"url": config.discord.notification_webhook}, {"allowedMentions": false});
|
const notif_hook = new Discord.WebhookClient({"url": config.discord.notification_webhook}, {"allowedMentions": false});
|
||||||
const pan_hook = new Discord.WebhookClient({"url": config.discord.pan_webhook}, {"allowedMentions": false});
|
const pan_hook = new Discord.WebhookClient({"url": config.discord.pan_webhook});
|
||||||
let user = new SteamUser();
|
let user = new SteamUser();
|
||||||
let tf2 = new TeamFortress2(user);
|
let tf2 = new TeamFortress2(user);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ tf2.on("systemMessage", (msg) => {
|
||||||
|
|
||||||
tf2.on("itemBroadcast", (msg, username, wasDestruction, defindex) => {
|
tf2.on("itemBroadcast", (msg, username, wasDestruction, defindex) => {
|
||||||
console.log(`[TF2] New Item :\nMsg:${msg}\nUser:${username}\nDestroy?:${wasDestruction}`);
|
console.log(`[TF2] New Item :\nMsg:${msg}\nUser:${username}\nDestroy?:${wasDestruction}`);
|
||||||
pan_hook.send({content: wasDestruction?"@everyone":"",embeds: [
|
pan_hook.send({content: "@everyone",embeds: [
|
||||||
{
|
{
|
||||||
description: msg,
|
description: msg,
|
||||||
color: wasDestruction?Discord.Colors.Red:Discord.Colors.Gold
|
color: wasDestruction?Discord.Colors.Red:Discord.Colors.Gold
|
||||||
|
|
Loading…
Reference in a new issue