-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,12 @@ | |
|
||
[![Python lint](https://github.com/Zalk0/ChouetteBot-discord/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/Zalk0/ChouetteBot-discord/actions/workflows/python-app.yml) | ||
|
||
Just some random project of doing a Discord bot using [discord.py](https://github.com/Rapptz/discord.py). | ||
Just some random project of doing a Discord bot | ||
using [discord.py](https://github.com/Rapptz/discord.py). | ||
You need to have Python 3.8 or higher installed (required by discord.py) ! | ||
|
||
Clone the projet and install the requirements (preferably in a [venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments)) : | ||
Clone the projet and install the requirements (preferably in | ||
a [venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments)) : | ||
|
||
``` | ||
git clone [email protected]:Zalk0/ChouetteBot-discord.git | ||
|
@@ -14,11 +16,16 @@ pip install -r requirements.txt | |
``` | ||
|
||
--- | ||
Before launching the bot, you need to fill in a **`.env`** file (using the [template](https://github.com/Zalk0/ChouetteBot-discord/blob/main/.env.example) | ||
Before launching the bot, you need to fill in a **`.env`** file (using | ||
the [template](https://github.com/Zalk0/ChouetteBot-discord/blob/main/.env.example) | ||
I provide in the repo) and put a Discord bot token inside. | ||
To have one, go to the [Discord Developer Portal](https://discord.com/developers) and create a new application. | ||
Go to the Bot section and click the Reset Token button, you can now claim the token. | ||
You also have to enable all the Privileged Gateway Intents as I assume they're enabled in the code (or change them). | ||
To have one, go to | ||
the [Discord Developer Portal](https://discord.com/developers) and create a new | ||
application. | ||
Go to the Bot section and click the Reset Token button, you can now claim the | ||
token. | ||
You also have to enable all the Privileged Gateway Intents as I assume they're | ||
enabled in the code (or change them). | ||
|
||
--- | ||
After having done all this you can launch the bot : | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
[project] | ||
requires-python = ">=3.8" | ||
|
||
|
||
[tool.ruff] | ||
line-length = 79 | ||
extend-exclude = ["venv38"] | ||
line-length = 79 | ||
|
||
[tool.ruff.format] | ||
indent-style = "space" | ||
line-ending = "lf" | ||
quote-style = "double" |