These are chat archives for dcsan/gitterbot

27th
Aug 2015
Rex Schrader
@SaintPeter
Aug 27 2015 02:53
botstatus
CamperBot
@camperbot
Aug 27 2015 02:53
All bot systems are go!
botVersion: 0.0.11
env: prod
botname: camperbot
Omar
@oab00
Aug 27 2015 07:38
this is a test to see if mentioning a person twice in one thanks command doubles the points
CamperBot
@camperbot
Aug 27 2015 07:38
if you want to thank someone, put an @ before their name!
Omar
@oab00
Aug 27 2015 07:38
about @dcsan
CamperBot
@camperbot
Aug 27 2015 07:38
:star: 97 | @dcsan | http://www.freecodecamp.com/dcsan
Omar
@oab00
Aug 27 2015 07:38
about @abhisekp
Santhosh Devaraj
@santhoshdevaraj
Aug 27 2015 07:38
@camperbot ok son!
CamperBot
@camperbot
Aug 27 2015 07:38
:star: 303 | @abhisekp | http://www.freecodecamp.com/abhisekp
Omar
@oab00
Aug 27 2015 07:38
thank you @dcsan @abhisekp @dcsan
CamperBot
@camperbot
Aug 27 2015 07:38
oab00 sends brownie points to @dcsan and @abhisekp and @dcsan :sparkles: :thumbsup: :sparkles:
:star: 98 | @dcsan | http://www.freecodecamp.com/dcsan
:star: 98 | @dcsan | http://www.freecodecamp.com/dcsan
:star: 304 | @abhisekp | http://www.freecodecamp.com/abhisekp
Omar
@oab00
Aug 27 2015 07:39
about @dcsan
CamperBot
@camperbot
Aug 27 2015 07:39
:star: 98 | @dcsan | http://www.freecodecamp.com/dcsan
GitterBotX
@GitterBotX
Aug 27 2015 07:39
:star: 303 | @abhisekp | http://www.freecodecamp.com/abhisekp
:star: 98 | @dcsan | http://www.freecodecamp.com/dcsan
:warning: oab00 already gave dcsan points
Omar
@oab00
Aug 27 2015 07:39
only 1 point registered .. looks good I guess :)
GitterBotX
@GitterBotX
Aug 27 2015 07:39
oab00 sends brownie points to @dcsan and @abhisekp and @dcsan :sparkles: :thumbsup: :sparkles:
:star: 97 | @dcsan | http://www.freecodecamp.com/dcsan
:warning: oab00 already gave dcsan points
Abhisek Pattnaik
@abhisekp
Aug 27 2015 07:40
@oab00 it doesn't double because there is a brownie limiter. There is already an issue #170
GitterBotX
@GitterBotX
Aug 27 2015 07:40
:warning: oab00 already gave abhisekp points
Omar
@oab00
Aug 27 2015 07:41
ah so it's already been caught .. nice :)
Abhisek Pattnaik
@abhisekp
Aug 27 2015 07:42
@oab00 but thanks for finding it once more. Keep looking for other bugs. :)
CamperBot
@camperbot
Aug 27 2015 07:42
abhisekp sends brownie points to @oab00 :sparkles: :thumbsup: :sparkles:
:star: 262 | @oab00 | http://www.freecodecamp.com/oab00
GitterBotX
@GitterBotX
Aug 27 2015 07:42
abhisekp sends brownie points to @oab00 :sparkles: :thumbsup: :sparkles:
:star: 262 | @oab00 | http://www.freecodecamp.com/oab00
Omar
@oab00
Aug 27 2015 07:43
sure will ;)
Omar
@oab00
Aug 27 2015 07:57
commands
CamperBot
@camperbot
Aug 27 2015 07:57

commands:

  • isCommand
  • cbot
  • echo
  • echojson
  • whoami
  • botversion
  • botstatus
  • botenv
  • archive
  • init
  • tooNoisy
  • help
  • menu
  • rooms
  • find
  • commands
  • music
  • announce
  • rollem
  • camperCount
  • welcome
  • hello
  • bob
  • wikiFooter
  • wikiUsage
  • wikiCantFind
  • wiki
  • messages
  • thanks
  • about
  • showInfoCallback
  • update
  • bonfire
  • checkBonfireCommands
  • searchBonfire
  • checkHasBonfire
  • inBonfireRoom
  • hint
  • bf
  • explain
  • bot
  • hi
  • index
  • thank
  • log
  • archives
GitterBotX
@GitterBotX
Aug 27 2015 07:57

commands:

  • isCommand
  • cbot
  • echo
  • echojson
  • botversion
  • botstatus
  • botenv
  • archive
  • init
  • tooNoisy
  • help
  • menu
  • rooms
  • find
  • commands
  • music
  • announce
  • rollem
  • camperCount
  • welcome
  • hello
  • bob
  • wikiFooter
  • wikiUsage
  • wikiCantFind
  • wiki
  • messages
  • thanks
  • about
  • showInfoCallback
  • update
  • bonfire
  • checkBonfireCommands
  • searchBonfire
  • checkHasBonfire
  • inBonfireRoom
  • hint
  • bf
  • explain
  • bot
  • hi
  • index
  • thank
  • log
  • archives
CamperBot
@camperbot
Aug 27 2015 07:57
if you want to thank someone, put an @ before their name!
Omar
@oab00
Aug 27 2015 07:57
is there a command that just returns a link to wiki/bonfire without printing it on chat ?
I think there should be one
wiki-link or bonfire-link
Abhisek Pattnaik
@abhisekp
Aug 27 2015 07:58
commands
CamperBot
@camperbot
Aug 27 2015 07:58

commands:

  • isCommand
  • cbot
  • echo
  • echojson
  • whoami
  • botversion
  • botstatus
  • botenv
  • archive
  • init
  • tooNoisy
  • help
  • menu
  • rooms
  • find
  • commands
  • music
  • announce
  • rollem
  • camperCount
  • welcome
  • hello
  • bob
  • wikiFooter
  • wikiUsage
  • wikiCantFind
  • wiki
  • messages
  • thanks
  • about
  • showInfoCallback
  • update
  • bonfire
  • checkBonfireCommands
  • searchBonfire
  • checkHasBonfire
  • inBonfireRoom
  • hint
  • bf
  • explain
  • bot
  • hi
  • index
  • thank
  • log
  • archives
Abhisek Pattnaik
@abhisekp
Aug 27 2015 07:58
@oab00 sry! Now there is one. :)
Omar
@oab00
Aug 27 2015 07:59
echo which one is it?
CamperBot
@camperbot
Aug 27 2015 07:59
@oab00 said: echo which one is it?
Abhisek Pattnaik
@abhisekp
Aug 27 2015 10:33
@dcsan found a bug! :bug: :warning:
If there are no .md files in data/wiki/ directory, then the server crashes. :fire:
So what's the soln.? And which code is responsible for this behaviour?
Abhisek Pattnaik
@abhisekp
Aug 27 2015 10:41

@dcsan I think this is the code. Is it?

fs.readdirSync(wikiDataDir).forEach(function (name) {
            //console.log("reading", name);
            if (! /md$/.test(name) ) {
                //console.log("skipping " + name);
            } else {
                var filePath = path.join(wikiDataDir, name);
                var arr = filePath.split(path.sep);
                var fileName = arr[arr.length - 1];

Here my question: Why is it reading the files synchronously? and how does it affect if there are no files?
I guess it should by either wrapped in a try...catch block or files should be read asynchronously and wait for the promises.

evaristoc
@evaristoc
Aug 27 2015 10:57

@abhisekp I am currently working an async and your conclusion seems right, but I don't know the case... I found at https://github.com/caolan/async that for certain sync calls (if iterating inside an async...) you get a

RangeError: Maximum call stack size exceeded

caolan also suggests a solution if the sync is still needed...

I am not sure if this is your case? Hope this helps...

Abhisek Pattnaik
@abhisekp
Aug 27 2015 10:58
@evaristoc @dcsan Issue #173 filed.
evaristoc
@evaristoc
Aug 27 2015 11:01
#173 seems to be different to the case I am referring to... @abhisekp
Rex Schrader
@SaintPeter
Aug 27 2015 17:18
@abhisekp @dcsan RE: #175 - is this a real room: "camperbot/HelpZiplines"? That doesn't seem right.
Abhisek Pattnaik
@abhisekp
Aug 27 2015 17:20
@SaintPeter goto https://gitter.im/camperbot/HelpZiplines
All rooms are added as per specified by @QuincyLarson and @dcsan
Abhisek Pattnaik
@abhisekp
Aug 27 2015 17:26
@SaintPeter See #148
Abhisek Pattnaik
@abhisekp
Aug 27 2015 17:50

Testing 400+ Room Joins

Apologies for the Inconvenience