Send to @MemeateBot your meme and it will be forwarded to all target chats configured in config.targetChats
including in the message a button to vote it. config.privateChatSecret must be typed in order to use the bot.
npm i
The config.json file must be created in the project root with the following content:
{
"botToken": "string",
"privateChatSecret": "string",
"mainChannelInfo": {
"name": "string",
"link": "string"
},
"targetChats": [
{
"id": "number"
},
{
"id": "number",
"expirationDays": "number",
"inviteToMainChannel": "boolean"
},
...
]
}
Being:
botToken: The Telegram bot token.privateChatSecret: The secret use to auth bot users.mainChannelInfo:nameandlinkfor the main channel, new chat members will be invited to it.targetChats: The target chat ids where the memes will be forwarded. Votes in a meme will be updated if no more thanexpirationDayshas passed since the meme has been published. IfinviteToMainChannelis set to true, new chat members will be invited to the main channel.
npm start
/memesOverallStatscommand to get memes stats/memesMonthStatscommand to get memes current month stats/authorsOverallStatscommand to get meme authors stats/authorsMonthStatscommand to get meme authors current month stats/removeMyLastMemecommand to remove the last submitted meme from everywhere (in case of error)- Better log management (should we use winston?)
- Cron for forwarding the best meme and best author of the month in the last day of the month
- Improve storage management (with a DB engine)
- ...