function submit() { game.game.status = 'submit'; hex.msg('#games', 'Let the game begin!'); hex.msg('#games', 'This round is: initials.'); hex.msg('#games', 'The initials are "DYSW".'); hex.msg('#games', 'PM me your answers now! You have thirty seconds.'); setTimeout(function() { vote(); }, 30000); }
hex.on(/^:([^!]+)![^@]+@([^ ]+) (JOIN|QUIT)/, function(info) { if (config.su[info[1]] === undefined) { return false; } if (info[3] === 'JOIN') { var regex = '^:NickServ![^@]+@[^ ]+ NOTICE [^ ]+ :STATUS ' + info[1] + ' ([0-3])'; hex.on_once(new RegExp(regex), function(status) { if (status[1] === '3') { console.log(info[1] + ' added as admin.'); admins[info[1]] = { host: info[2], level: config.su[info[1]] } } }); hex.msg('NickServ', 'STATUS ' + info[1]); } else { delete admins[info[1]]; } });
twit.on('tweet', function(tweet) { if (!tweet.search('@')) { hex.msg('#x10hosting', 'New tweet from @x10hosting: ' + tweet) } }).on('connected', function()
function pre() { game.game.status = 'pre'; hex.msg('#games', 'The game will start in 10 seconds. If you want to play, please PM "join" to me.'); setTimeout(function() { submit(); }, 10000); }
var interval = setInterval(function() { if (reply.length === 0) { clearInterval(interval); return false; } hex.msg('#games', reply[0]); reply.splice(0, 1); return false; }, 1000);
hex.join(info[2], function () { console.log('Successfully rejoined ' + info[2]); hex.msg(info[2], info[1] + ': If you want me to go away, please ask a bot admin to remove me using "admin part".'); });