A Discord bot to ring a bell in the Glasgow Hackerspace when the @keyholder role is mentioned.
The code is written in Python and designed to run on a Raspberry Pi.
An SG90 servo motor is wired to 5v, GND, and pin 11 (GPIO 17) on the Raspberry Pi.
$ git clone https://github.com/glasgowhackerspace/doorbell.git
$ cd doorbell
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt
- Clone the repo to a Raspberry Pi.
- Set up a Python virtual environment.
- Activate the virtual environment.
- Install the dependencies.
The bot requires a token to access the Discord API. You need a Discord dev account to generate this token: https://discord.com/developers/
Once generated, these details should be entered into a .env file following the format of the .env.template file in this repo.
Finally run the bot:
$ python3 main.py
