add inital program versions

This commit is contained in:
2025-05-18 21:14:45 -05:00
parent 6c374871e7
commit 5aaa58bd23
6 changed files with 718 additions and 1 deletions

16
index.js Normal file
View 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();