membersheep / 4bot Goto Github PK
View Code? Open in Web Editor NEWA telegram bot to serve random images from 4chan image boards.
License: MIT License
A telegram bot to serve random images from 4chan image boards.
License: MIT License
Remove a document form the disk after posting it.
Hi,
thank you so much for your awesome Telegram bot.
When I entered /help the bot told me about a commands list but I do not have one.
Can you reproduce that?
Thanks!
Handle telegram API errors and notify them to the user.
Use a DB to cache boards info instead of downloading it for each request.
Update readme.md with a deployment guide for heroku.
webm format is not played by telegrams, is it possible to put a converter inside the bot?
is it possible to add a cooldown to the bot messages? Like 20 seconds between the last command and the commands working again.
Add a logger in place of console logs.
Rewrite 4chan crawler to get more data
Implement a counter to count the daily users of the bot.
Hi @membersheep,
I run your 4chan Telegram bot on Heroku and got those two mails today:
You are receiving this email because you run at least one Node.js application on Heroku.
The Node.js team has announced that a high severity remote Denial of Service (DoS) Constant Hashtable Seeds vulnerability in Node.js versions 4.x through 8.x has been patched in the following versions:
4.8.4
6.11.1
7.10.1
8.1.4
Detecting if you're vulnerable from the Heroku CLI
$ heroku run node -v -a APPNAME
If your version is less than what's listed above, you will need to upgrade.
Upgrading
If your application specifies a Node.js version in the engines section of your package.json, you will first need to update it to the appropriate version listed above. See this devcenter article on specifying a Node.js version for details.
To upgrade, you'll need to push a new commit to your app, which will cause a deploy. If you don't want to push any actual changes, this commit can be empty:
$ git commit --allow-empty -m "upgrade Node.js version"
$ git push heroku master
Verifying that you're running a fixed version of Node.js
After your application has been deployed, you can verify that the new version is installed by running:
$ heroku run node -v -a APPNAME
This will show one of the version strings from above.
Hello,
Earlier today, we notified you that you had one or more Node.js applications affected by a recent vulnerability. We sincerely apologize if the email you received did not include the list of affected applications.
The following Heroku app(s) are affected:
4bot, mumblebot
Note: Apps that have already been upgraded will appear in this list.
Upgrading
1. Review your package.json file. You need to assure your engines section specifies a version that is not vulnerable: 4.8.4, 6.11.1, 7.10.1, or 8.1.4. If you do not specify a version, 6.11.1 will be used automatically. Please see Specifying a Node.js version for details.
2. Push a new commit to your app, which will cause a deploy. For example:
$ heroku git:clone -a APPNAME
# review your package.json and edit if necessary (see above)
$ git add package.json
$ git commit --allow-empty -m "Upgrade Node.js version"
$ git push heroku master
If you have any additional questions, please view our detailed FAQ.
I think that I do not have to do anything but you might edit the package.json? ๐ค
Thank you! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.