-
Notifications
You must be signed in to change notification settings - Fork 12
updates per issue 24 and associated bug fixes #26
Conversation
Barbara, I will have a look soon. For now, you can close pull requests on your own. |
@@ -5,7 +5,7 @@ var irc = require('irc') | |||
var ircServer = 'irc.mozilla.org', | |||
nick = '_TestDayBot', | |||
options = { | |||
channels: ['#testday'], | |||
channels: ['#testdaybotTest'], // for testing; to be run in #qa? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the landing I need the real channel used. This will be #qa, right.
Still a huge PR. Lets make smaller increments in the future. Otherwise please check my comments and get them fixed. I still would like to get it landed tomorrow. Thanks. |
hi @whimboo! |
@@ -18,135 +18,215 @@ var ircServer = 'irc.mozilla.org', | |||
usersTalked: {}, | |||
hourUTC: {}, | |||
}, | |||
RUNNING_TIME = 1000 * 60 * 60 * 20; | |||
testDay = false, | |||
testDayAdmins = ["ashughes", "whimboo", "galgeek"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those names are about to go away once we are done with most of the refactoring. All that information should then be stored in a file on disk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whimboo – I understood from your comment here that you wanted to implement a config file like the one that fennecbot uses. It was an easy update.
With the remaining comments implemented we are good to get it landed. |
hi @whimboo ! Thank you for your feedback! I've updated as best I can. I've sadly discovered that :addAdmin with current verification check crashes the bot when given a nick that is not currently in use, and I haven't yet figured out how to fix that. Other notes: |
Barbara, thanks for the update. I will have a look now. But one heads-up... For any remaining issue on this PR please really stop implementing new features like the config file. As I have said earlier I want to get this PR merged, but new features always defer the landing due to other introduced issues. Please keep code changes as small as possible. I don't want a massive PR which fixes all the P1 issues. :) |
etherpad = "", | ||
testDay = false, | ||
testDayAdmins = config.testDayAdmins, | ||
helpers = config.helpers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think that we should store the helpers in the config file. That setting needs to be reset for each testday to the known admins and can then be extended. For now lets keep but please file a new issue for that.
Here's the error that's output currently when you :addAdmin a nick who's not present on IRC, and that crashes the bot: { prefix: 'belew.mozilla.org', /Users/bara/Dev/testdaybot/node_modules/irc/lib/irc.js:520 |
@galgeek please file the error as separate issue as I have pointed out earlier, and reference this PR by adding |
I squashed all the commits into a single one and updated the commit message to better reflect what those changes are for. The PR has been merged as 81b076a. Thanks Barbara! |
Hi @whimboo
I've re-packaged most of my earlier updates and more for issue 24 in this branch, in what I hope to be an easier to review package. It still includes a lot, but the only part that's not really issue 24 is fixing the existing stats, which otherwise crash the bot.
This version of the bot is currently running on #testdaybotTest, /msg _TestDayBot :adminhelp for admin commands.
It should be fine to close my earlier pull request unmerged.
Thanks for your patience!