add inital program versions
This commit is contained in:
16
index.js
Normal file
16
index.js
Normal file
@ -0,0 +1,16 @@
|
||||
// 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();
|
||||
Reference in New Issue
Block a user