3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
Luke Slater 2012-06-24 23:21:59 +01:00
commit 253b9a75c4
2 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,4 @@
var poll = function(dbot) {
if(!dbot.db.hasOwnProperty('polls')) {
dbot.db.polls = {};
}
var polls = dbot.db.polls;
var commands = {
'~newpoll': function(event) {

3
run.js
View File

@ -42,6 +42,9 @@ var DBot = function(timers) {
if(!this.db.hasOwnProperty("ignores")) {
this.db.ignores = {};
}
if(!this.db.hasOwnProperty('polls')) {
this.db.polls = {};
}
// Load Strings file
this.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8'));