17 lines
542 B
JavaScript
17 lines
542 B
JavaScript
// version of the shred bot for development and testing
|
|
|
|
// wrap eris, add timers, wrap a list of voice channels
|
|
const DiscordShredBot = require('./DiscordShredBot.js');
|
|
|
|
// env that can specify a (non default) config
|
|
const configEnvVar = 'SHRED_BOT_TEST_CONFIG';
|
|
|
|
// JSON config should usually be in /etc/shred.ing
|
|
const configFile = process.env.hasOwnProperty( configEnvVar )
|
|
? process.env[ configEnvVar ]
|
|
: '/etc/shred.ing/discord-channels.json';
|
|
|
|
const bot = new DiscordShredBot( configFile );
|
|
|
|
bot.Connect();
|