Permalink
Browse files

Forum alert

  • Loading branch information...
1 parent 997d438 commit 49cb67e91ae74ea80143940d39100052a4279b9c @dz0ny dz0ny committed Jan 7, 2017
Showing with 1,067 additions and 9 deletions.
  1. +2 −1 .gitignore
  2. +1 −0 bot.coffee
  3. +5 −1 lib/fat_tests.coffee
  4. +1,012 −0 npm-shrinkwrap.json
  5. +9 −7 package.json
  6. +21 −0 scripts/forum.coffee
  7. +17 −0 test/forum.coffee
View
@@ -6,4 +6,5 @@ dump.rdb
_builds
_steps
_projects
-.*log
+.*log
+*.patch
View
@@ -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) ->
View
@@ -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"
Oops, something went wrong.

0 comments on commit 49cb67e

Please sign in to comment.