https://github.com/ilevn/firesidebot
A Discord bot for the Fireside Politics server.
https://github.com/ilevn/firesidebot
Last synced: about 1 month ago
JSON representation
A Discord bot for the Fireside Politics server.
- Host: GitHub
- URL: https://github.com/ilevn/firesidebot
- Owner: ilevn
- Created: 2020-01-31T21:41:01.000Z (over 5 years ago)
- Default Branch: 0.0.1
- Last Pushed: 2020-09-29T20:34:15.000Z (over 4 years ago)
- Last Synced: 2025-02-15T17:48:25.140Z (3 months ago)
- Language: Python
- Homepage:
- Size: 383 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fireside Bot
***
This is a bot made for the Fireside Politics server.
Formerly known as Coffee and Politics, created right after the great purge.
***## Getting Started
### Prerequisites
You are going to need the following:* [Poetry](https://python-poetry.org/docs/#installation)
* Python 3.8+
* (Preferably) A *NIX based systemThe bot is coded and tested on *NIX based systems.
### Installing
1. **Make sure to run Python 3.8 or higher.**This is required to actually run the bot.
2. **Set up the virtualenv with Poetry.**
The project is using [Poetry](https://python-poetry.org/) as its dependency manager.Once poetry is installed, simply run `poetry install` and you're all set.
3. **Setup configuration.**
The next step is just to create a `config.py` file in the root directory of
the bot with the following template:```python
token = "" # Your bot's token.
autoload = ["cogs", "to", "load"] # List of cogs to load on start-up.
postgresql = "postgresql://user:password@host/database" # Your postgresql info.# These are optional
dev_mode = True | False # Whether the bot should run in development mode.
dev_prefix = "prefix" # The dev mode bot prefix.
```4. **Create the database.**
For security, it is recommended you create an extra user with a
password.```postgresql
CREATE ROLE fbot WITH LOGIN PASSWORD 'yourpw';
CREATE DATABASE firesidebot OWNER fbot;
```
This will create a new database that the bot can modify.5. **Initialise the database.**
The database initialisation command will fully set up your database.
`poetry run python3 run.py db init`### Tests
To test the bot is running correctly, do .ping in your server. The response should be "Pong" from the bot in your server.## Built With
* [Discord.py](https://github.com/Rapptz/discord.py)