From 39b2b09f1bc4bd0886cbeab03d807edb25a7953c Mon Sep 17 00:00:00 2001 From: codepupper Date: Tue, 17 Dec 2019 11:07:37 +0100 Subject: [PATCH] vars --- DiscordEvents/message.js | 2 ++ DiscordModules/General/system.js | 2 +- vars.js | 44 ++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 vars.js diff --git a/DiscordEvents/message.js b/DiscordEvents/message.js index 57f0266..1595b40 100755 --- a/DiscordEvents/message.js +++ b/DiscordEvents/message.js @@ -5,6 +5,7 @@ const Users = new table('users'); const Backend = new table('backend'); const Trello = require('trello'); const config = require('../config'); +const vars = require('../vars'); const trello = new Trello(config.trello.key, config.trello.token); module.exports = { name: 'message', @@ -46,6 +47,7 @@ module.exports = { db: { users: Users, servers: Servers, backend: Backend }, utils: require('../utils'), config: require('../config'), + vars: require('../vars'), isDeveloper: client.config.developers.find((dev) => msg.author.id == dev.id) }; if (!cmd) return; diff --git a/DiscordModules/General/system.js b/DiscordModules/General/system.js index 07b0c5d..cbf2a5c 100644 --- a/DiscordModules/General/system.js +++ b/DiscordModules/General/system.js @@ -30,7 +30,7 @@ module.exports = class Info extends Command { async command(ctx) { let SystemEmbed = new MessageEmbed() - .setTitle(`${ctx.client.user.username} | v${ctx.config.version}`) + .setTitle(`${ctx.client.user.username} | v${ctx.vars.version}`) .setColor(color) .setDescription( `Made by ${ctx.utils.format.bold( diff --git a/vars.js b/vars.js new file mode 100644 index 0000000..4cbe462 --- /dev/null +++ b/vars.js @@ -0,0 +1,44 @@ +module.exports = { + version: '3.0.5', + color: '#ff995d', + name: 'thaldr.in', + hostname: '127.2.11.1', + //hostname: 'localhost', + port: '8080', + /* authorization: "g66(TTV&^R^&T*IV56RF$FUTyxsyu534", */ + type: { + beta: true, + prod: false + }, + prefixes: [ "'", `<@511212243015434270> `, '<@!511212243015434270> ' ], + developers: [ + { + id: '318044130796109825', + nick: 'ry' + } + ], + contributors: [ + { + id: '150745989836308480', + nick: 'Cyn', + reason: 'Shortlink Code :3' + }, + { + id: '356323373443448843', + nick: 'Twiggy', + reason: 'Letting me use his Sona as the Mascot <3' + }, + { + id: '289947794142396427', + nick: 'Fynn', + reason: 'Letting me use his name for `SourceFynnder` <3' + }, + { + id: '242843345402069002', + nick: 'Donny', + reason: 'Hosting this thing' + } + ], + source: 'https://gitdab.com/r/thaldrin', + invite: 'https://discordapp.com/oauth2/authorize?client_id=434662676547764244&scope=bot&permissions=379968' +};