Advertisement
Guest User

Untitled

a guest
Jul 13th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var nconf = require('nconf').argv().env().file({ file:'config.json' });
  2.  
  3. // List of commands to check for
  4. var commands = [
  5.     'left', 'right', 'up', 'down',
  6.     'start', 'select',
  7.     'a', 'b',
  8.     'democracy', 'anarchy'
  9. ];
  10.  
  11. var username = process.env.TWITCH_USERNAME = 'myuser';
  12. var oauth = process.env.TWITCH_OAUTH = 'oauth:myauthkey';
  13. var channel = process.env.TWITCH_CHANNEL = '#mychannel';
  14. var os = process.env.CONFIG_OS = 'windows';
  15. var programName = process.env.CONFIG_PROGRAM_NAME = 'Binding of Isaac: Afterbirth';
  16. var maxCharName = process.env.CONFIG_MAX_CHAR_NAME = '15';
  17. var maxCharCommand = process.env.CONFIG_MAX_CHAR_COMMAND = '20';
  18. var sendKey = process.env.CONFIG_SEND_KEY = true;
  19. var serverIP = process.env.TWITCH_IP  = 'irc.twitch.tv';
  20. var filteredCommands = process.env.CONFIG_FILTERED_COMMANDS || nconf.get('CONFIG_FILTERED_COMMANDS');
  21. var throttledCommands = process.env.CONFIG_THROTTLED_COMMANDS || nconf.get('CONFIG_THROTTLED_COMMANDS');
  22.  
  23. var ircConfig = {
  24.     // Either 'windows' or 'other'
  25.     os: 'windows',
  26.  
  27.     // Title of the window of the program
  28.     // Ex: 'Desmume' or 'VBA'
  29.     programName: programName,
  30.  
  31.     // Ex: irc.twitch.tv or 199.9.252.26
  32.     server: serverIP || 'irc.twitch.tv',
  33.     // Your twitch username
  34.     nick: username,
  35.     // oauth token from www.twitchapps.com/tmi
  36.     password: oauth,
  37.     // name of channel
  38.     channel: channel,
  39.  
  40.     // If you want to print usernames/commands like in twitchplayspokemon
  41.     printToConsole: true,
  42.     // Maximum characters to show for a person's name in the console log
  43.     maxCharName: maxCharName || 8,
  44.     // Maximum characters to show for a command in the console log
  45.     // Ex: left => left since only 4 char, democracy => democra
  46.     maxCharCommand: maxCharCommand || 10,
  47.  
  48.     // If you need to filter the commands sent to the program
  49.     // Ex: democracy/anarchy since they don't affect the program itself
  50.     // Ex: ["democracy","anarchy"]
  51.     filteredCommands: filteredCommands || [],
  52.  
  53.     // If you want to prevent people from using from command too often
  54.     // Ex: ["start"]
  55.     throttledCommands: throttledCommands || [],
  56.     // Throttle time in seconds
  57.     // Ex: you can limit 'start' so it's only used every 10 sec
  58.     timeToWait: 10000,
  59.  
  60.     // Linux: delay between each possible keypress in ms (can't be too fast)
  61.     // If you want to change delay for windows - change key.py
  62.     delay: 100,
  63.  
  64.     sendKey: true,
  65.     commands: commands
  66. };
  67.  
  68. module.exports = ircConfig;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement