Skip to content

Commit

Permalink
feat: change line separators
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Nov 29, 2023
1 parent a89160c commit 4344c4c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: Ruff

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write
on: [ pull_request, push ]

jobs:
ruff:
Expand All @@ -18,7 +11,7 @@ jobs:
- name: Lint
uses: chartboost/ruff-action@v1
with:
args: "check --fix"
args: "check"
- name: Format
uses: chartboost/ruff-action@v1
with:
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 :
Expand Down
2 changes: 1 addition & 1 deletion commands_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from bot import ChouetteBot

# List the commands
COMMANDS_LIST: Tuple = ( # noqa: E501
COMMANDS_LIST: Tuple = (
latex,
die_roll,
ping,
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
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"

0 comments on commit 4344c4c

Please sign in to comment.