https://github.com/nottherealtar/duncan
.gg/IntoTheSim
https://github.com/nottherealtar/duncan
github-config github-pages profile profile-readme readme readme-profile
Last synced: 3 months ago
JSON representation
.gg/IntoTheSim
- Host: GitHub
- URL: https://github.com/nottherealtar/duncan
- Owner: nottherealtar
- License: apache-2.0
- Created: 2023-08-18T08:42:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T06:54:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T12:17:29.792Z (5 months ago)
- Topics: github-config, github-pages, profile, profile-readme, readme, readme-profile
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Duncan - Python Discord Bot
## Disclaimer
Slash commands can take some time to get registered globally, so if you want to test a command you should use
the `@app_commands.guilds()` decorator so that it gets registered instantly. Example:```py
@commands.hybrid_command(
name="command",
description="Command description",
)
@app_commands.guilds(discord.Object(id=GUILD_ID)) # Place your guild ID here
```## How to set up
To set up the bot I made it as simple as possible. I now created a [config.json](config.json) file where you can put the
needed things to edit.Here is an explanation of what everything is:
| Variable | What it is |
| ------------------------- | ----------------------------------------------------------------------|
| YOUR_BOT_PREFIX_HERE | The prefix you want to use for normal commands |
| YOUR_BOT_TOKEN_HERE | The token of your bot |
| YOUR_BOT_PERMISSIONS_HERE | The permissions integer your bot needs when it gets invited |
| YOUR_APPLICATION_ID_HERE | The application ID of your bot |
| OWNERS | The user ID of all the bot owners |## How to start
To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt (
Windows)
.Before running the bot you will need to install all the requirements with this command:
```
python -m pip install -r requirements.txt
```After that you can start it with
```
python bot.py
```> **Note** You may need to replace `python` with `py`, `python3`, `python3.11`, etc. depending on what Python versions you have installed on the machine.
## Built With
* [Python 3.9.12](https://www.python.org/)
## License
This project is licensed under the: Apache License 2.0.
See the [LICENSE.md](LICENSE.md) file for more details.