# GhettoBot
* [Dev Post](https://devpost.com/software/angelobot/joins/TXqYmMC_gPG3Ahz2z8ZwBQ)
* [Github Repo](https://github.com/sebhauri/GhettoBot)
# Links
* [SQLalchemy](https://www.sqlalchemy.org)
* [Pony ORM](https://ponyorm.org)
* [Python telegram bot](https://github.com/python-telegram-bot/python-telegram-bot)
* [ChatMember](https://python-telegram-bot.readthedocs.io/en/stable/telegram.chatmember.html)
* [PollBot La Compote](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/pollbot.py)
* [Conception](https://docs.google.com/drawings/d/1yK3_k46EqmwAI30CVa5Cx4rVThgRcK-7qv-ob9OG9NU/edit?usp=sharing)
# Conception
## User story
In a private chat
- **Me**: /start AngeloBot
- **Bot**: Welcome ! Please choose a name for your event
- **Me**: Soirée à la Sallaz
- **Bot**: Propose a date
- **Me**: 07.11.20
- **Bot**: Fine, would you like to add another date ?
- **Me**; 14.11.20
- **Bot**: Fine, would you like to add another date ?
- **Me**: No
- **Bot**: Propose a place
- **Me**: Sallaz
- **Bot**: Fine, would you like to add another place ?
- **Me**: No
- **Bot**: Your event is ready ! You can send the poll to your friends or groups with /invite [username|groupname]
- **Me**: /invite "C'est Juste"
In the group
- **Bot**: Your are invited to Soirée à la Sallaz ! Here are the possible dates. Please vote !
- **Bot**: *display a poll*
- **User1**: *answer poll*
- **User2**: *answer poll*
- ...
In the private chat
- **Me**: /setadate
- **Bot**: Here the result of the poll:
- **Bot**: *display the poll*
- **Bot**: Choose a date
- **Me**: 07.11.20
- **Bot**: Excellent! Please create a new group and add me.
In the event group
- **Me**: *add the bot*
- **Bot**: Thank you ! Use /join [username|group] to invite the people in the group.
- **Me**: /join "C'est Juste"
In the group
- **Bot**: Good news ! La soirée à la Sallaz takes place on the 07.11.20. If you like to join, type /join La soirée à la Sallaz
- **User1**: /join La soirée à la Sallaz
In the event group
- **Bot**: Welcome User1 ! Type /info to see the information for the event !
## Future features
- The event organizer can ask the guest to bring something.
- The guests can set an arrival hour
- The event organizer can do another poll (e.g. do you sleep on site ?)