Update formatting
This commit is contained in:
@ -67,4 +67,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- `/remind resume` now has a list of all reminders instead of needing an ID.
|
- `/remind resume` now has a list of all reminders instead of needing an ID.
|
||||||
- `/remind remove` now has a list of all reminders instead of needing an ID.
|
- `/remind remove` now has a list of all reminders instead of needing an ID.
|
||||||
- `/remind list` now has a list of all reminders instead of needing an ID.
|
- `/remind list` now has a list of all reminders instead of needing an ID.
|
||||||
- !remind is now /remind. You need to reinvite the bot with the `applications.commands` scope for this to work. It will also take up to an hour for the slash command to be registered.
|
- !remind is now /remind. You need to reinvite the bot with the `applications.commands` scope for this to work. It will
|
||||||
|
also take up to an hour for the slash command to be registered.
|
||||||
|
21
README.md
21
README.md
@ -13,7 +13,8 @@ Type `/remind` in a Discord server where this bot exists to get a list of slash
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You have two choices, [install directly on your computer](#Install-directly-on-your-computer) or using [Docker](https://hub.docker.com/r/thelovinator/discord-reminder-bot).
|
You have two choices, [install directly on your computer](#Install-directly-on-your-computer) or
|
||||||
|
using [Docker](https://hub.docker.com/r/thelovinator/discord-reminder-bot).
|
||||||
|
|
||||||
### Creating a Discord bot token
|
### Creating a Discord bot token
|
||||||
|
|
||||||
@ -23,18 +24,20 @@ You have two choices, [install directly on your computer](#Install-directly-on-y
|
|||||||
- Copy the bot token and paste it into the `BOT_TOKEN` environment variable.
|
- Copy the bot token and paste it into the `BOT_TOKEN` environment variable.
|
||||||
- Go to the OAuth2 page -> URL Generator
|
- Go to the OAuth2 page -> URL Generator
|
||||||
- Select the `bot` and `applications.commands` scope.
|
- Select the `bot` and `applications.commands` scope.
|
||||||
- Select the bot permissions that you want the bot to have. Select `Administrator`. (TODO: Add a list of permissions that are needed)
|
- Select the bot permissions that you want the bot to have. Select `Administrator`. (TODO: Add a list of permissions
|
||||||
|
that are needed)
|
||||||
- Copy the generated URL and open it in your browser. You can now invite the bot to your server.
|
- Copy the generated URL and open it in your browser. You can now invite the bot to your server.
|
||||||
|
|
||||||
### Install directly on your computer
|
### Install directly on your computer
|
||||||
|
|
||||||
- Install latest version of needed software:
|
- Install the latest version of needed software:
|
||||||
- [Python](https://www.python.org/)
|
- [Python](https://www.python.org/)
|
||||||
- You should use the latest version.
|
- You should use the latest version.
|
||||||
- You want to add Python to your PATH.
|
- You want to add Python to your PATH.
|
||||||
- [Poetry](https://python-poetry.org/docs/master/#installation)
|
- [Poetry](https://python-poetry.org/docs/master/#installation)
|
||||||
- Windows: You have to add `%appdata%\Python\Scripts` to your PATH for Poetry to work.
|
- Windows: You have to add `%appdata%\Python\Scripts` to your PATH for Poetry to work.
|
||||||
- Download project from GitHub with git or download the [ZIP](https://github.com/TheLovinator1/discord-reminder-bot/archive/refs/heads/master.zip).
|
- Download project from GitHub with Git or download
|
||||||
|
the [ZIP](https://github.com/TheLovinator1/discord-reminder-bot/archive/refs/heads/master.zip).
|
||||||
- If you want to update the bot, you can run `git pull` in the project folder or download the ZIP again.
|
- If you want to update the bot, you can run `git pull` in the project folder or download the ZIP again.
|
||||||
- Rename .env.example to .env and open it in a text editor (e.g., VSCode, Notepad++, Notepad).
|
- Rename .env.example to .env and open it in a text editor (e.g., VSCode, Notepad++, Notepad).
|
||||||
- If you can't see the file extension:
|
- If you can't see the file extension:
|
||||||
@ -42,11 +45,13 @@ You have two choices, [install directly on your computer](#Install-directly-on-y
|
|||||||
- Windows 11: Click View -> Show -> File name extensions.
|
- Windows 11: Click View -> Show -> File name extensions.
|
||||||
- Open a terminal in the repository folder.
|
- Open a terminal in the repository folder.
|
||||||
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
||||||
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options and `Open PowerShell window here`
|
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options
|
||||||
|
and `Open PowerShell window here`
|
||||||
- Install requirements:
|
- Install requirements:
|
||||||
- Type `poetry install` into the PowerShell window. Make sure you are
|
- Type `poetry install` into the PowerShell window. Make sure you are
|
||||||
in the repository folder with the [pyproject.toml](pyproject.toml) file.
|
in the repository folder with the [pyproject.toml](pyproject.toml) file.
|
||||||
- You may have to restart your terminal if it can't find the `poetry` command. Also double check that it's in your PATH.
|
- You may have to restart your terminal if it can't find the `poetry` command. Also double check it is in
|
||||||
|
your PATH.
|
||||||
- Start the bot:
|
- Start the bot:
|
||||||
- Type `poetry run bot` into the PowerShell window.
|
- Type `poetry run bot` into the PowerShell window.
|
||||||
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
||||||
@ -65,7 +70,8 @@ Docker Hub: [thelovinator/discord-reminder-bot](https://hub.docker.com/r/thelovi
|
|||||||
- Windows 11: Click View -> Show -> File name extensions.
|
- Windows 11: Click View -> Show -> File name extensions.
|
||||||
- Open a terminal in the extras folder.
|
- Open a terminal in the extras folder.
|
||||||
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
||||||
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options and `Open PowerShell window here`
|
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options
|
||||||
|
and `Open PowerShell window here`
|
||||||
- Run the Docker Compose file:
|
- Run the Docker Compose file:
|
||||||
- `docker-compose up`
|
- `docker-compose up`
|
||||||
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
||||||
@ -75,7 +81,6 @@ Docker Hub: [thelovinator/discord-reminder-bot](https://hub.docker.com/r/thelovi
|
|||||||
|
|
||||||
- Email: tlovinator@gmail.com
|
- Email: tlovinator@gmail.com
|
||||||
- Discord: TheLovinator#9276
|
- Discord: TheLovinator#9276
|
||||||
- Steam: [steamcommunity.com/id/TheLovinator/](https://steamcommunity.com/id/TheLovinator/)
|
|
||||||
- Send an issue: [discord-reminder-bot/issues](https://github.com/TheLovinator1/discord-reminder-bot/issues)
|
- Send an issue: [discord-reminder-bot/issues](https://github.com/TheLovinator1/discord-reminder-bot/issues)
|
||||||
- GitHub Discussions:
|
- GitHub Discussions:
|
||||||
[discord-reminder-bot/discussions](https://github.com/TheLovinator1/discord-reminder-bot/discussions)
|
[discord-reminder-bot/discussions](https://github.com/TheLovinator1/discord-reminder-bot/discussions)
|
||||||
|
@ -38,10 +38,3 @@ types-pytz = "^2022.1.2"
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.black]
|
|
||||||
line-length = 120
|
|
||||||
|
|
||||||
[tool.isort]
|
|
||||||
profile = "black"
|
|
||||||
line_length = 120
|
|
||||||
|
Reference in New Issue
Block a user