https://github.com/mikk155/discord-bot
Template for starting your own discord bot in python using a hooking system
https://github.com/mikk155/discord-bot
discord discord-api discord-bot discord-bot-maker discord-bot-template discord-py discordbot-template discordbotmaker discordpy
Last synced: 3 months ago
JSON representation
Template for starting your own discord bot in python using a hooking system
- Host: GitHub
- URL: https://github.com/mikk155/discord-bot
- Owner: Mikk155
- License: mit
- Created: 2024-09-09T08:28:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T00:00:00.000Z (5 months ago)
- Last Synced: 2025-04-05T18:14:39.043Z (3 months ago)
- Topics: discord, discord-api, discord-bot, discord-bot-maker, discord-bot-template, discord-py, discordbot-template, discordbotmaker, discordpy
- Language: Python
- Homepage: https://discord.gg/2ErNUQh6fE
- Size: 388 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-bot
Template discord bot that supports a "Plugin" implementation with a hooking system
```
pip install -r requirements.txt
```Create a file ``config.json`` in the workspace.
Open it and follow the schema instruction provided by this snippet:
```json
{
"$schema": "schema.json"
}
```
You have ``./config_example.json`` for examplesAfter you have configured the bot you can run it in background with a .bat file:
```bat
start "" /B pythonw bot.py
```Or either in developer mode:
```bat
@echo offpython bot.py -dev
pause
```
- developer mode will make the function [DEVELOPER()](src/constdef.py#L25) to return true# Developing
Create your plugins in ``plugins/``
Import ``main``:
```python
from src.main import *
```If you need any extra library to downoad create your own requirements at ``plugins/{your plugin name}_requirements.txt`` the bot will install them before it loads your plugin
### Pull requests are welcome and encouraged.
### Why
> I made this almost for experimenting with python and the discord API but then i though on doing a discord bot for my server that i could easly implement/modify/remove features at any time because i have kind of memory problems, i always forget the logics i write after some months so here it is, this dumb plugin system for easly administration.