VotBot is a Telegram bot to organize votes. It is special in two points:
- It can take a Trello Card List json URL in parameter (see details);
- It's stateless: all data are stored in the chat itself (see operation chart).
- Use
make
to build votbot executable - Export your Telegram Bot Token before running the executable:
export BOT_TOKEN=123456789:THISISATELEGRAMBOTTOKEN_@botfather; ./votbot
- Talk to the bot ;
- Create a new vote:
/newvote https://raw.githubusercontent.com/epfl-dojo/votbot/master/minimal.json
- Do your vote ;
- Close the vote:
- Reply the following to the vote message
/close
If you do not want to use a trello cards lists json url, you can use any json file with, at least, these attributes:
{
"name": "Name of the vote",
"cards": [
{
"name": "First vote option"
},
{
"name": "Second vote option"
},
{
"name": "Third vote option"
}
]
}
An example stands here: https://raw.githubusercontent.com/epfl-dojo/votbot/master/minimal.json
- Open your Trello board
- Add
.json
to its URL - Find the list ID you need (ctrl+f)
- Use api.trello.com/1/lists/[idList] link
- Add this query string:
?fields=name&cards=open&card_fields=name,url
- Talk to @votbot and use
/newvote URL