Compare commits
3 Commits
4f2aa85356
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 80c5f1bc04 | |||
| 3296ac762e | |||
| 5c8d544814 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "bot/cogs/cog-template"]
|
||||||
|
path = bot/cogs/cog-template
|
||||||
|
url = https://git.ao-it.net/templatecity/bot-discord-cog
|
||||||
17
README.md
17
README.md
@@ -1,6 +1,23 @@
|
|||||||
# Template: Discord Bot
|
# Template: Discord Bot
|
||||||
## Howto
|
## Howto
|
||||||
|
### get token
|
||||||
1. Go to: https://discord.com/developers/applications
|
1. Go to: https://discord.com/developers/applications
|
||||||
2. Create a new Aplication
|
2. Create a new Aplication
|
||||||
3. In the Application go to Bot, add them and copy the token
|
3. In the Application go to Bot, add them and copy the token
|
||||||
4. Add the token in bot.conf
|
4. Add the token in bot.conf
|
||||||
|
|
||||||
|
### add cogs
|
||||||
|
1. add cog to `./bot/cogs` with main file `cog.py` (sub dir is allowed)
|
||||||
|
2. optional use submodule like: https://git.ao-it.net/templatecity/bot-discord-cog
|
||||||
|
```bash
|
||||||
|
git submodule add $URL ./bot/cogs/myCog/
|
||||||
|
```
|
||||||
|
|
||||||
|
### run bot
|
||||||
|
```bash
|
||||||
|
python3 main.py
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
./main.py
|
||||||
|
```
|
||||||
1
bot/cogs/cog-template
Submodule
1
bot/cogs/cog-template
Submodule
Submodule bot/cogs/cog-template added at 1d93a050ab
Reference in New Issue
Block a user