{"id":13718403,"url":"https://github.com/theabbie/devrant-bot","last_synced_at":"2026-03-09T19:02:27.625Z","repository":{"id":49215976,"uuid":"304660768","full_name":"theabbie/devrant-bot","owner":"theabbie","description":"An NPM package to create DevRant Bots","archived":false,"fork":false,"pushed_at":"2021-06-23T07:32:59.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-15T17:50:26.303Z","etag":null,"topics":["devrant","devrant-bots","theabbie"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/devrant-bot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theabbie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"theabbie","open_collective":"theabbie","ko_fi":"theabbie","tidelift":"npm/theabbie","liberapay":"theabbie","issuehunt":"theabbie","otechie":"theabbie","custom":["https://theabbie.github.io","https://paypal.me/theabbie","https://donorbox.org/theabbie"]}},"created_at":"2020-10-16T15:05:25.000Z","updated_at":"2023-03-04T04:35:15.000Z","dependencies_parsed_at":"2022-09-01T20:32:45.060Z","dependency_job_id":null,"html_url":"https://github.com/theabbie/devrant-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fdevrant-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fdevrant-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fdevrant-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theabbie%2Fdevrant-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theabbie","download_url":"https://codeload.github.com/theabbie/devrant-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228106596,"owners_count":17870437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devrant","devrant-bots","theabbie"],"created_at":"2024-08-03T01:00:26.355Z","updated_at":"2025-10-16T11:55:43.361Z","avatar_url":"https://github.com/theabbie.png","language":"JavaScript","readme":"# DevRant Bot\nAn NPM package to create DevRant bots,   \nSuper easy to implement,  \nNever care about implementation again, just focus on functionality.    \n     \n    \n\n![image](https://user-images.githubusercontent.com/17960677/96278822-9703a480-0ff3-11eb-804e-859ef31be175.png)\n## How To Use\nThis package can be used to create bots which will act when someone mentions it.  \nIt can then Reply to that mention with some text or image.\n```js\nvar Bot = require('devrant-bot');\n\n(async function() {\nvar bot = new Bot();\nawait bot.login(\"username\",\"password\");\nvar mentions = await bot.get();\nconsole.log(mentions);\n})();\n```\nWhich produces,\n\n```js\n[\n  {\n    \"rid\": 2821893, //rant ID\n    \"cid\": 3308364,  //comment ID\n    \"is_bot\": false, //User who has called is a bot or not\n    \"text\": \"some message\", //Message\n    \"user\": \"theabbie\",  //Username of user who called\n    \"time\": 1603281044  //Timestamp of comment\n    \"rto\": [{\n       \"id\": 3307103,\n       \"text\": \"text\",\n       \"time\": 1603264598,\n     },\n     ...]\n  },\n  ...\n]\n```\n\nTo reply,\n\n```js\n(async function() {\nvar bot = new Bot();\nawait bot.login(\"username\",\"password\");\nvar mentions = await bot.get();\nfor (msg of mentions) {\n  await bot.reply(msg.user,msg.rid,\"reply\", image_url);\n}\n})();\n```\n\nThis makes bot development really easy and you can safely focus only on the functionality rather than the implementation of the DevRant bot.\n\n## Contributing\n\nThank you for your interest in contributing, If you feel like there's something missing or any new feature can be added, just create a PR and I will see the rest.\n\n## Help\n\nYou can contact me on social media, Everything about me can be found [here](https://theabbie.github.io)\n\n## Installation\n\n### Requirements\n\n* Node.Js installed\n\n### Dev Dependencies\n\n* Axios\n* RantScript\n\n## Credits\n\n* [RantScript](https://github.com/leahlundqvist/RantScript/) For Creating an excellent Wrapper For the DevRant API.\n\n## Contact\n\nContact me anywhere, just visit [my portfolio](https://theabbie.github.io)\n\n## License\n\nThis project is licensed under MIT License, See [LICENSE](/LICENSE) for more information\n","funding_links":["https://patreon.com/theabbie","https://opencollective.com/theabbie","https://ko-fi.com/theabbie","https://tidelift.com/funding/github/npm/theabbie","https://liberapay.com/theabbie","https://issuehunt.io/r/theabbie","https://otechie.com/theabbie","https://theabbie.github.io","https://paypal.me/theabbie","https://donorbox.org/theabbie"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheabbie%2Fdevrant-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheabbie%2Fdevrant-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheabbie%2Fdevrant-bot/lists"}