Skip to content

CodeByAidan/PollBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PollBot

PollBot is a discord bot to create polls

Usage

The question must comes as first argument after the /poll

All arguments must comes between double quotes

You can optionally add choices.

/poll "Question"

or

/poll "Question" "Choice A" "Choice B" "Choice C"

Install

Straightforward python deployment:

git clone https://github.com/livxy/PollBot.git
cd PollBot
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

The discord bot token can be stored in a .env file, located in the script folder.

# .env file
DISCORD_TOKEN=my_bot_token

Run with

python PollBot.py

Example

Pollbot

Credits

Icon based on Freepik from www.flaticon.com