These are chat archives for dcsan/gitterbot

20th
Aug 2015
supriyantomaftuh
@supriyantomaftuh
Aug 20 2015 01:41
Respect.
dc
@dcsan
Aug 20 2015 07:56
@supriyantomaftuh thanks!
CamperBot
@camperbot
Aug 20 2015 07:56
dcsan sends brownie points to @supriyantomaftuh :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for supriyantomaftuh
dc
@dcsan
Aug 20 2015 07:57
weirdly your github profile doesn't show up tho you have 70 repos... private profile?
Abhisek Pattnaik
@abhisekp
Aug 20 2015 07:59
now the page is not found. :P https://github.com/supriyantomaftuh
Abhisek Pattnaik
@abhisekp
Aug 20 2015 12:46
thanks @dcsan
CamperBot
@camperbot
Aug 20 2015 12:46
abhisekp sends brownie points to @dcsan :sparkles: :thumbsup: :sparkles:
:star: 90 | @dcsan | http://www.freecodecamp.com/dcsan
Abhisek Pattnaik
@abhisekp
Aug 20 2015 12:46
thanks @dcsan
CamperBot
@camperbot
Aug 20 2015 12:46
abhisekp sends brownie points to @dcsan :sparkles: :thumbsup: :sparkles:
:warning: abhisekp already gave dcsan points
Abhisek Pattnaik
@abhisekp
Aug 20 2015 12:47
thanks @dcsan
CamperBot
@camperbot
Aug 20 2015 12:47
abhisekp sends brownie points to @dcsan :sparkles: :thumbsup: :sparkles:
:warning: abhisekp already gave dcsan points
Berkeley Martinez
@BerkeleyTrue
Aug 20 2015 16:31
bot status
botstatus
Abhisek Pattnaik
@abhisekp
Aug 20 2015 16:40
@QuincyLarson the rate limit on brownie points is creating problems while thanking users in multiple rooms.
Scenario: User helps in multiple rooms and thanked by two different person at the same time.
OR @dcsan , the bot can implement event queuing to thank users without hitting the API limit. :)
Berkeley Martinez
@BerkeleyTrue
Aug 20 2015 16:46
@dcsan It could add responses together and shoot as one large message instead of multiple separate small ones
Abhisek Pattnaik
@abhisekp
Aug 20 2015 16:50

@BerkeleyTrue I think, the multiple messages could be like this

  • UserResponse: @userX: thanks @userY for helping. :)
    BotResponse (optional): @userX thanks @userY :thumbsup:

After adding brownie points,

@dcsan :point_up: August 20, 2015 10:20 PM
dc
@dcsan
Aug 20 2015 17:00
are we really hitting a rate limit on gitter side?
i find that hard to believe
@abhisekp
Abhisek Pattnaik
@abhisekp
Aug 20 2015 17:01
@dcsan did you deploy the new code? Joining 400+ chat rooms?
@dcsan you said FCC has some API limit while adding brownies for thanks command.
@dcsan the bot might hit an Gitter API limit when it joins 400+ chat rooms and users go crazy on the bot. :)
dc
@dcsan
Aug 20 2015 17:10
nope not deployed yet
i see some crashes in the logs tho
dcsan/gitterbot#160
i have a meeting in 20mins so have to go
but will try to check it later
dc
@dcsan
Aug 20 2015 17:15
botstatus
CamperBot
@camperbot
Aug 20 2015 17:15
All bot systems are go!
botVersion: 0.0.11
env: prod
botname: camperbot
Rex Schrader
@SaintPeter
Aug 20 2015 17:48
Also, BTW, darn you for making me care. I guess I'll have to figure out how to get a local copy working
dc
@dcsan
Aug 20 2015 17:48
it should be pretty simple now,
even on windows
Rex Schrader
@SaintPeter
Aug 20 2015 17:49
Windows: developing on hard mode.
dc
@dcsan
Aug 20 2015 17:49
and lot of people here can help
yeah, for internet apps, its not really very fun
all the tools are designed for unix so WIN is mostly a hacky backport
but we'd love to have you contribute something!
working on a real project is pretty different from working on puzzles too, tho you know that from your other coding day job i guess.
Rex Schrader
@SaintPeter
Aug 20 2015 17:51
I'll definitely give it a shot. So far my experience trying for FCC has been a mixed bag. My Git skills are pathetic and my fork looks like an explosion.
Abhisek Pattnaik
@abhisekp
Aug 20 2015 17:51
explain git commit
CamperBot
@camperbot
Aug 20 2015 17:51

:point_right: writing great git commit message [wiki]

The seven rules of a great git commit message

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how

A properly formed git commit subject line should always be able to complete the following sentence:

If applied, this commit will <<your subject line here>>

:pencil: read more about writing great git commit message on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Aug 20 2015 17:52
@SaintPeter :point_up: August 20, 2015 11:21 PM
Rex Schrader
@SaintPeter
Aug 20 2015 17:53
@abhisekp Haha - I can write good commit messages. I just have issues keeping my local fork in sync with the current FCC release without a zillion extra commit entries.
Abhisek Pattnaik
@abhisekp
Aug 20 2015 17:54
:D
Rex Schrader
@SaintPeter
Aug 20 2015 18:11
Ok, I've got my code working. Do I submit as a branch?
@abhisekp How are you dealing with files with a colon in them on windows?
DTing
@dting
Aug 20 2015 18:15
@SaintPeter i just do something like git remote add upstream <upstream url> and before I want to push i will commit my changes then git fetch upstream git rebase -i upstream/master
Rex Schrader
@SaintPeter
Aug 20 2015 18:19
ok, pull request created, #162
Abhisek Pattnaik
@abhisekp
Aug 20 2015 18:20
@SaintPeter #150
I used C9.io for working on the bot but I guess a .gitignore file on a directory parent to the repo directory with gitignored nap/data/wiki might ease the job! :)
@SaintPeter thinking about adding some git ignores to the .gitignore file. There are two .gitignore files in the repo, one in the root directory and another inside nap directory.
Abhisek Pattnaik
@abhisekp
Aug 20 2015 18:27
The .gitignore file under root directory should ignore only OS, IDE and editor specific files and directories and the .gitignore file under nap can ignore project specific files & directories.
@SaintPeter I've also added a .jsbeautifyrc file that specifies the rules for source code formatting (beautifying). You must run js-beautify and lint before committing the changes.
@SaintPeter These infos :point_up_2: must be included in a CONTRIBUTE.md file #136
supriyantomaftuh
@supriyantomaftuh
Aug 20 2015 18:33
Hy. Nice to know you all.
See you
Abhisek Pattnaik
@abhisekp
Aug 20 2015 18:41
@dcsan There are many branches in the repo. If you think any branch as unnecessary or is not in your local repo, you can --prune them all or you can manually remove unneeded branches.
Rex Schrader
@SaintPeter
Aug 20 2015 20:04
@abhisekp How were you able to get it working on c9? I am unable to install nodemon nor can I clone the repo.
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:05
@SaintPeter why can't you clone your own fork in C9?
you can use sudo npm i -g nodemon to install nodemon
Rex Schrader
@SaintPeter
Aug 20 2015 20:05
@abhisekp I tried that but got a connection refused error
@abhisekp
saintpeter@gitterbot:~/workspace $ sudo npm install -g nodemon                                                                                                         
npm ERR! Error: connect ECONNREFUSED
npm ERR!     at errnoException (net.js:905:11)
npm ERR!     at Object.afterConnect [as oncomplete] (net.js:896:19)
npm ERR!  { [Error: connect ECONNREFUSED]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect' }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Linux 3.14.13-c9
npm ERR! command "/home/ubuntu/.nvm/v0.10.35/bin/node" "/home/ubuntu/.nvm/v0.10.35/bin/npm" "install" "-g" "nodemon"
npm ERR! cwd /home/ubuntu/workspace
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack     at errnoException (net.js:905:11)
npm ERR! stack     at Object.afterConnect [as oncomplete] (net.js:896:19)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ubuntu/workspace/npm-debug.log
npm ERR! not ok code 0
I'm gettign a connection refused from github as well
This is a fresh c9 instance with the default node config
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:07

@SaintPeter

P.S. I'm using zsh as my shell

Rex Schrader
@SaintPeter
Aug 20 2015 20:08
@abhisekp Is that a node config, or an ubuntu config?
@abhisekp what c9 "template" did you choose?
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:09
@SaintPeter Node.JS and used my repo url while creating workspace.
@SaintPeter but that didn't matter coz I remove all files in the workspace including the .c9 directory using rm -Rf * command and cloned my forked repo in the workspace directory again.
Rex Schrader
@SaintPeter
Aug 20 2015 20:21
@abhisekp I'm getting complaints about needing ES6?
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:22
@SaintPeter where? in C9?
Rex Schrader
@SaintPeter
Aug 20 2015 20:22
@abhisekp Yeah:
/home/ubuntu/workspace/nap/app.js:12
    throw new Error("ES6 is required; add --harmony");
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:22
@SaintPeter did you clone your own fork and did you run git pull --all after it?
Rex Schrader
@SaintPeter
Aug 20 2015 20:23
@abhisekp Yes and yes - it reports as being up to date
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:23
@SaintPeter is your node up to date?
Rex Schrader
@SaintPeter
Aug 20 2015 20:25
@abhisekp I did npm update node and it gave me nothing. Gah. This is too hard for now. I'll get it working on my home system. sigh
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:26
@SaintPeter wait!! What's the version node --version
Rex Schrader
@SaintPeter
Aug 20 2015 20:27
@abhisekp v0.10.35
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:30
@SaintPeter i think c9 install iojs by default.
You can check which iojs and iojs -v
I don't think it's that in your case though because my node is symlinked to iojs in C9 automatically
Rex Schrader
@SaintPeter
Aug 20 2015 20:34
@abhisekp
saintpeter@gitterbot2:~/workspace/nap (master) $ which iojs
/usr/bin/iojs
saintpeter@gitterbot2:~/workspace/nap (master) $ which node
/home/ubuntu/.nvm/v0.10.35/bin/node
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:35
oh! you're using nvm. k.
But i wonder why it asks for --harmony since @dcsan removed all the ES6 codes
Rex Schrader
@SaintPeter
Aug 20 2015 20:35
What is nvm?
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:37
Node Version Manager which your C9 workspace has installed without your knowledge.
It manages different version of node
@SaintPeter What's your output to this?
Rex Schrader
@SaintPeter
Aug 20 2015 20:40
false
What verison of node should I be running?
abhisekp @abhisekp wonders why it shows error :confused:
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:45
@SaintPeter may be because of old node version. Upgrade your node by nvm install latest
Rex Schrader
@SaintPeter
Aug 20 2015 20:46
@abhisekp k
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:47
@SaintPeter but first check if which nvm shows any results
abhisekp @abhisekp @SaintPeter 's k message seems odd. :confused:
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:47
@SaintPeter Please do it now.
Rex Schrader
@SaintPeter
Aug 20 2015 20:48
@abhisekp I'm gonna stop now. Now my nodemon command has gone missing. I'm tried and I'm frusturated and I don't understand what I'm doing. I'll poke you again later. Thanks for the help.
CamperBot
@camperbot
Aug 20 2015 20:48
saintpeter sends brownie points to @abhisekp :sparkles: :thumbsup: :sparkles:
:star: 251 | @abhisekp | http://www.freecodecamp.com/abhisekp
Abhisek Pattnaik
@abhisekp
Aug 20 2015 20:48
@SaintPeter update use nvm install stable
@SaintPeter :(
@SaintPeter for reference to nvm, check https://github.com/creationix/nvm
Abhisek Pattnaik
@abhisekp
Aug 20 2015 22:35

@dcsan I've added the following in the .gitignore file.

logs/
*.log
!README.md

but it doesn't ignore nap/logs/README.md

nap/docs/nap.sublime-workspace
nap/logs/README.md
nap/mylogfile.log

Any suggestions?