Compare commits
No commits in common. "dd5d35d043e41f4d93a827ab4fa036fb0ce6c82e" and "a9eeef17d70049690138eaca84f7b93b49311c79" have entirely different histories.
dd5d35d043
...
a9eeef17d7
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
obj/*
|
obj/*
|
||||||
PyMenu
|
PyMenu
|
||||||
src/config.h
|
src/config.h
|
||||||
core
|
|
@ -26,4 +26,4 @@ RUN make
|
|||||||
|
|
||||||
COPY src/config.h src/config.h
|
COPY src/config.h src/config.h
|
||||||
|
|
||||||
ENTRYPOINT ["./PyMenu", "$BOT_TOKEN"]
|
ENTRYPOINT ["./PyMenu"]
|
10
README.md
10
README.md
@ -46,19 +46,15 @@ make
|
|||||||
git clone https://git.chauvet.pro/starnakin/PyMenuBOT/
|
git clone https://git.chauvet.pro/starnakin/PyMenuBOT/
|
||||||
cd PyMenuBOT
|
cd PyMenuBOT
|
||||||
```
|
```
|
||||||
|
- Config the bot
|
||||||
|
Edit the `src/config.h` file and set the discord bot token
|
||||||
- Build the docker image.
|
- Build the docker image.
|
||||||
``` bash
|
``` bash
|
||||||
docker build -t pymenu .
|
docker build -t pymenu .
|
||||||
```
|
```
|
||||||
- Config the bot
|
|
||||||
Edit the `docker-compose.yml` file and set the discord bot token
|
|
||||||
- Run the docker
|
- Run the docker
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker run --restart=always --name=pymenu -d pymenu
|
||||||
```
|
|
||||||
- Run the docker - alternative without docker-compose
|
|
||||||
```bash
|
|
||||||
docker run --restart=always --name=pymenu -e BOT_TOKEN=token -d pymenu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Setting up on Your Discord Server
|
## Setting up on Your Discord Server
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
services:
|
|
||||||
pymenu:
|
|
||||||
container_name: pymenu
|
|
||||||
image: pymenu
|
|
||||||
build: .
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
- BOT_TOKEN=TOKEN
|
|
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
int main(int ac, char **av)
|
int main()
|
||||||
{
|
{
|
||||||
dpp::cluster bot(ac == 2 ? av[1] : BOT_TOKEN, dpp::i_default_intents | dpp::i_message_content);
|
dpp::cluster bot(BOT_TOKEN, dpp::i_default_intents | dpp::i_message_content);
|
||||||
|
|
||||||
bot.on_log(dpp::utility::cout_logger());
|
bot.on_log(dpp::utility::cout_logger());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user