From e206113949a68bcee91a4a1a96b49bf7377fae1d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 6 May 2026 01:14:47 +0000 Subject: [PATCH] change token.txt location --- README.md | 4 ++-- discord-bot.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f92d481..4846a97 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ workdir/ ├── build_engine_sdk/ ├── poomer-discord-hello-world/ └── lib - └── dpp # contains include files of D++ + └── dpp # contains include files of + └─â”token.txt ├── DPP/ ├── makefile ├── README.md -└── token.txt ``` ## Linux diff --git a/discord-bot.cpp b/discord-bot.cpp index 4bc4dfd..88a8e0c 100644 --- a/discord-bot.cpp +++ b/discord-bot.cpp @@ -26,7 +26,7 @@ int main() { if (!token_file.is_open()) { // if not, try parent directory if (!token_file.is_open()) { - token_file_path = "../token.txt"; + token_file_path = "token.txt"; token_file.open(token_file_path); if (!token_file.is_open()) { @@ -225,4 +225,4 @@ void flip_image_vertically(unsigned char* data, int width, int height, int chann std::memcpy(bottom_row, temp_row, row_stride); } delete[] temp_row; -} \ No newline at end of file +}