{"action":"created","issue":{"url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26","repository_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot","labels_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26/comments","events_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26/events","html_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26","id":201756276,"number":26,"title":"Bot spams encouragement with multiple hashtags","user":{"login":"mathewmorris","id":10860014,"avatar_url":"https://avatars.githubusercontent.com/u/10860014?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewmorris","html_url":"https://github.com/mathewmorris","followers_url":"https://api.github.com/users/mathewmorris/followers","following_url":"https://api.github.com/users/mathewmorris/following{/other_user}","gists_url":"https://api.github.com/users/mathewmorris/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewmorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewmorris/subscriptions","organizations_url":"https://api.github.com/users/mathewmorris/orgs","repos_url":"https://api.github.com/users/mathewmorris/repos","events_url":"https://api.github.com/users/mathewmorris/events{/privacy}","received_events_url":"https://api.github.com/users/mathewmorris/received_events","type":"User","site_admin":false},"labels":[{"id":395378384,"url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-19T03:29:18Z","updated_at":"2017-01-22T10:31:56Z","closed_at":null,"body":"## Issue\r\nBasically had 24 notifications in less than 30 seconds and they were all from the bot mentioning me.\r\n\r\n\r\n## Possible Solution\r\nMaybe we can teach it to only encourage once per day?\r\n\r\n<br>\r\n<br>\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10860014/22092659/e15f127c-ddc4-11e6-8071-003c209df154.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/comments/274322637","html_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26#issuecomment-274322637","issue_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/26","id":274322637,"user":{"login":"spences10","id":234708,"avatar_url":"https://avatars.githubusercontent.com/u/234708?v=3","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"created_at":"2017-01-22T10:31:56Z","updated_at":"2017-01-22T10:31:56Z","body":"Hi @amandeepmittal I have and am currently education myself with LevelDB, something I thought was quite straight forward has consumed quite a bit of time now.\r\n\r\nI have `db.js` for the database \r\n\r\n```\r\nvar level = require('level');  \r\nvar path = require('path');\r\n\r\nvar dbPath = process.env.DB_PATH || path.join(__dirname, 'mydb');  \r\nvar db = level(dbPath);\r\n\r\nmodule.exports = db;\r\n```\r\n\r\nAnd I want to be able to query the db, so in `app.js` \r\n\r\n```\r\nvar db = require('./db', {\r\n  valueEncoding: 'json'\r\n})\r\n\r\ndb.put('name', 'ID001')\r\ndb.put('name', 'ID002')\r\ndb.put('name', 'ID003')\r\ndb.put('name', 'ID004')\r\ndb.put('name', 'ID005')\r\ndb.put('name', 'ID006')\r\ndb.put('name', 'ID007')\r\n\r\ndb.createReadStream()\r\n  .on('data', function (entry) {\r\n    console.log(entry.value);\r\n  })\r\n```\r\n\r\nOutput is\r\n\r\n```\r\nspences10:~/workspace/level-db $ node app.js\r\nID006\r\nspences10:~/workspace/level-db $ node app.js\r\nID007\r\nspences10:~/workspace/level-db $ node app.js\r\nID007\r\nspences10:~/workspace/level-db $ node app.js\r\nID005\r\nspences10:~/workspace/level-db $ node app.js\r\nID007\r\nspences10:~/workspace/level-db $ node app.js\r\nID007\r\nspences10:~/workspace/level-db $ node app.js\r\nID006\r\nspences10:~/workspace/level-db $ node app.js\r\nID005\r\nspences10:~/workspace/level-db $ node app.js\r\nID003\r\nspences10:~/workspace/level-db $ node app.js\r\nID007\r\n```\r\n\r\nThat's from mashing the `node app.js` in the terminal\r\n\r\nSo, I'm trying to work out how to iterate or just `get` data from the db\r\n"}}
{"actor":{"display_login":"spences10"}}