๐Ÿ“ฆ wrussell1999 / form-bot

๐Ÿ“ Discord bot used for handling responses to forms

โ˜… 2 stars โ‘‚ 2 forks ๐Ÿ‘ 2 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/wrussell1999/form-bot.git
HTTPS git clone https://github.com/wrussell1999/form-bot.git
SSH git clone git@github.com:wrussell1999/form-bot.git
CLI gh repo clone wrussell1999/form-bot
Will Russell Will Russell Formatting for dictionaries 861666e 6 years ago ๐Ÿ“ History
๐Ÿ“‚ 861666e7743f32fa7a81d03c7016d2116275eb64 View all commits โ†’
๐Ÿ“ formbot
๐Ÿ“„ .gitignore
๐Ÿ“„ config.json
๐Ÿ“„ README.md
๐Ÿ“„ requirements.txt
๐Ÿ“„ README.md

FormBot

A discord bot for handling responses to generic online forms, through private messages.

This bot was made specially for HackTheMidlands 4.0, but is designed to be used for any form.

Usage

Type !mentor anywhere in your server and it will trigger the bot to privately message you the questions on the form.

This bot is designed for a mentoring system, but can be altered to work for different kinds of forms quite easily.

It works with the following fields (however, everything should work):

  • all plaintext fields
  • checkbox
  • radio

Things to note

  • You can change the command from !mentor.
  • You can change the final message when all the questions have been asked.

Development

Setup a virtual environment

$ virtualenv .venv
$ source .venv/bin/activate

Install required packages

$ pip install -r requirements.txt

Configuation

You will need a token for discord. Follow this guide to get one.

Add the token, and URL for the form you want to use to config.json.

{
    "token": "token",
    "url": "url"
}

Run

$ python -m formbot

Contributors