2021-08-25 09:57:30 +00:00
|
|
|
# Discord Bot Demo
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2021-08-26 01:54:07 +00:00
|
|
|
```git clone https://git.chch.tech/python/discord-bot-demo.git```
|
|
|
|
|
|
|
|
```cd discord-bot-demo```
|
|
|
|
|
2021-08-25 09:57:30 +00:00
|
|
|
```pip3 install pipenv```
|
2021-08-25 09:59:52 +00:00
|
|
|
|
2021-08-25 09:57:30 +00:00
|
|
|
```pipenv sync```
|
|
|
|
|
2021-08-26 01:54:07 +00:00
|
|
|
## Create a Bot
|
|
|
|
|
|
|
|
https://discordpy.readthedocs.io/en/stable/discord.html
|
|
|
|
|
|
|
|
## Add Token
|
|
|
|
|
|
|
|
```cp .env.sample .env```
|
|
|
|
|
|
|
|
Put token from above in .env
|
|
|
|
|
2021-08-25 09:57:30 +00:00
|
|
|
## Run
|
|
|
|
|
2021-08-26 01:54:07 +00:00
|
|
|
```pipenv run command```
|
2021-08-25 09:57:30 +00:00
|
|
|
|