
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
devrant-bot
Advanced tools
An NPM package to create DevRant bots,
Super easy to implement,
Never care about implementation again, just focus on functionality.
This package can be used to create bots which will act when someone mentions it.
It can then Reply to that mention with some text or image.
var Bot = require('devrant-bot');
(async function() {
var bot = new Bot();
await bot.login("username","password");
var mentions = await bot.get();
console.log(mentions);
})();
Which produces,
[
{
"rid": 2821893, //rant ID
"cid": 3308364, //comment ID
"is_bot": false, //User who has called is a bot or not
"text": "some message", //Message
"user": "theabbie", //Username of user who called
"time": 1603281044 //Timestamp of comment
"rto": [{
"id": 3307103,
"text": "text",
"time": 1603264598,
},
...]
},
...
]
To reply,
(async function() {
var bot = new Bot();
await bot.login("username","password");
var mentions = await bot.get();
for (msg of mentions) {
await bot.reply(msg.user,msg.rid,"reply"[,image_url]);
}
})();
This makes bot development really easy and you can safely focus only on the functionality rather than the implementation of the DevRant bot.
Thank 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.
You can contact me on social media, Everything about me can be found here
Contact me anywhere, just visit my portfolio
This project is licensed under MIT License, See LICENSE for more information
FAQs
An NPM package to create DevRant Bots
The npm package devrant-bot receives a total of 3 weekly downloads. As such, devrant-bot popularity was classified as not popular.
We found that devrant-bot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.