https://github.com/mieuxvoter/majority-judgment-bot-botman
A bot used to create majority-judgment polls that work with many clients such as Discord, Slack and Telegram. Based on botman.
https://github.com/mieuxvoter/majority-judgment-bot-botman
chatbot discord-bot majority-judgement-voting slack-bot telegram-bot
Last synced: 12 months ago
JSON representation
A bot used to create majority-judgment polls that work with many clients such as Discord, Slack and Telegram. Based on botman.
- Host: GitHub
- URL: https://github.com/mieuxvoter/majority-judgment-bot-botman
- Owner: MieuxVoter
- License: mit
- Created: 2021-06-19T17:46:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T19:23:00.000Z (about 5 years ago)
- Last Synced: 2025-03-17T22:55:53.664Z (over 1 year ago)
- Topics: chatbot, discord-bot, majority-judgement-voting, slack-bot, telegram-bot
- Language: PHP
- Homepage: https://mieuxvoter.fr/
- Size: 21.5 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Majority Judgment bot - botman
A bot used to create majority-judgment polls that works with many clients such as Discord, Slack and Telegram. Based on [botman](https://botman.io/).
*This is a work in progress, not really functional yet.*
## Installation
git clone https://github.com/MieuxVoter/majority-judgment-bot-botman.git
cd majority-judgment-bot-botman
composer install
### Configuration
Copy the config file example:
cp .env.example .env
Then in the `.env` file, replace environment variables values by their corresponding content:
#### `DISCORD_BOT_TOKEN`
Bot token for Discord. To get it, copy the token in your Discord application page under *Bot* tab, in *Build-A-Bot* section (see [Create bots/Discord](#discord)).
## Run
php ./demo.php
The bot should be connected and answer every time a user says `hello`.
## Create bots
### Discord
1. Enable the *Developer mode* in the *Advanced* tab in Discord settings.
2. In https://discord.com/developers/applications, create a new application:
- click on the *New Application* button, fill application name and validate;
- under the *Bot* tab:
- in *Privileged Gateway Intents* section, check *Presence Intent* and *Server Members Intent* then save;
- under the *OAuth2* tab:
- check `bot` in the `Scopes` section,
- check the permissions you want in the `Bot Permissions` section,
- then copy the generated authentication url.
3. Paste the authentication url in your web browser, then confirm the dialog popup to attach the bot to a Discord server.