Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/maybeanerd/MagiBot. MagiBot - the community building discord bot that adds joinsounds to your voice discord.gg/2Evcf4T
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364import { ClientUser } from 'discord.js';import config from './configuration';import { DeferReply } from './types/command';
export const OWNERID = config.owner;export const TOKEN = config.tk;export const APP_ID = config.appId;export const DETAILED_LOGGING = false;
export const SIGN = 'MagiBot - created by @maybeanerd';
export const adminDeferralType = DeferReply.public;
// eslint-disable-next-line import/no-mutable-exportsexport const queueVoiceChannels: Map<string, string> = new Map();
let bot_user: ClientUser;
export function setUser(usr: ClientUser) { bot_user = usr;}
export function user() { return bot_user;}
// for shadowbanned servers we want do denyconst shadowbannedGuilds = new Map([ // rik and stefans server ['859803064537186334', true], // test: teabots : seems to work! // ['380669498014957569', true],]);const shadowbannedUsers = new Map([ // rik ['206502772533624832', true], // stefan ['223967778615459842', true], // test nico // ['185845248163840002', true],]);
// eslint-disable-next-line no-shadowexport const enum shadowBannedLevel { not = 0x0000, member = 0x0001, guild = 0x1001,}
export function isShadowBanned( userid: string, guildid: string, guildOwnerId: string,) { if (shadowbannedGuilds.get(guildid) || shadowbannedUsers.get(guildOwnerId)) { return shadowBannedLevel.guild; } if (shadowbannedUsers.get(userid)) { return shadowBannedLevel.member; } return shadowBannedLevel.not;}export const shadowBannedSound = 'https://www.myinstants.com/media/sounds/wet-fart_1.mp3';