forked from ubuntu-si/ircbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.coffee
More file actions
29 lines (23 loc) · 782 Bytes
/
bot.coffee
File metadata and controls
29 lines (23 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
fat = require './lib/fat'
console.log process.env
if process.env.REDIS_URL?
global.redis = require('then-redis').createClient(process.env.REDIS_URL)
else
global.redis = require('then-redis').createClient()
bot = new fat.Bot
server: process.env.IRC_SERVER || 'freenode',
nick: process.env.IRC_NICK || 'jabuk',
channels: [process.env.IRC_CHANNEL || '#ubuntu-si']
require("./scripts/chatter")(bot)
require("./scripts/servisi")(bot)
require("./scripts/seen")(bot)
require("./scripts/set-get")(bot)
require("./scripts/vreme")(bot)
require("./scripts/apt")(bot)
require("./scripts/url")(bot)
require("./scripts/forum")(bot)
require("./scripts/wordpress-check")(bot)
bot.command /^.(pomo[čc]|help)$/i, (r) ->
msg = bot.help.join "\n"
r.privmsg msg
bot.connect()