commit 45d3ca2a6a82018ce6e96bf38704ba9d642cb0cf parent 3d8a35ee27e0e7a03824c9045fdf08e0e84fc0e4 Author: Asher Morgan <59518073+ashermorgan@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:37:13 -0700 Update README.md Diffstat:
| M | README.md | | | 59 | ++++++++++++++++++++++++++++++++--------------------------- |
1 file changed, 32 insertions(+), 27 deletions(-)
diff --git a/README.md b/README.md @@ -4,30 +4,35 @@ A Discord bot that facilitates countdowns and generates detailed countdown analy ## Setup -1. Install the Python dependencies - ``` - pip install -r requirements.txt - ``` - -2. Go to the [Discord Developer Portal](https://discord.com/developers/) and create an application and a bot - -3. Create `.env` file and add settings: - ``` - TOKEN=... - PREFIX=! - DATABASE=postgresql://... - LOG_FILE=log.txt - LOG_LEVEL=INFO - ``` - -4. Run the bot - ``` - python -m countdown_bot - ``` - -5. Add the bot to your server - ``` - https://discordapp.com/oauth2/authorize?client_id=BOT_ID_HERE&scope=bot&permissions=101440 - ``` - -6. Send `!help` to the bot get a list of commands and a description of the bot's behavior +Install the Python dependencies +``` +pip install -r requirements.txt +``` + +Go to the [Discord Developer Portal](https://discord.com/developers/) and create an application and a bot + +Create `.env` file and add settings: +``` +TOKEN=... +PREFIX=! +DATABASE=postgresql://... +LOG_FILE=log.txt +LOG_LEVEL=INFO +``` + +Initialize the PostgreSQL database +``` +psql 'postgresql://...' -f models/tables.sql -f models/utilities.sql -f models/analytics.sql +``` + +Run the bot +``` +python -m countdown_bot +``` + +Add the bot to your server +``` +https://discordapp.com/oauth2/authorize?client_id=BOT_ID_HERE&scope=bot&permissions=101440 +``` + +Send `!help` to the bot get a list of commands and a description of the bot's behavior