Skip to content

Commit

Permalink
Forum alert
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jan 7, 2017
1 parent 997d438 commit 49cb67e
Show file tree
Hide file tree
Showing 7 changed files with 1,067 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,5 @@ dump.rdb
_builds
_steps
_projects
.*log
.*log
*.patch
1 change: 1 addition & 0 deletions bot.coffee
Expand Up @@ -19,6 +19,7 @@ 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) ->
Expand Down
6 changes: 5 additions & 1 deletion lib/fat_tests.coffee
Expand Up @@ -22,14 +22,18 @@ class FakeRedis
global.redis = new FakeRedis()

class BotTest extends fat.Bot
constructor: () ->
constructor: (cb) ->
@help = ["Pomoč:"]
@gcb = cb

prepClient: ->
@client =
say: ->
return

say: (txt, chan) ->
@gcb txt

test: (message, cb)->
@emit 'user:talk',
nick: "mocha"
Expand Down

0 comments on commit 49cb67e

Please sign in to comment.