mirror of
https://github.com/reality/dbot.git
synced 2025-04-17 21:37:58 +02:00
move poll whatsit
This commit is contained in:
parent
321ffb83c5
commit
17bbccbe98
@ -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
3
run.js
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user