diff --git a/CMakeLists.txt b/CMakeLists.txt index b9e16c7..3eabcb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 3.15) # Project name, version and description project(gbp-bot VERSION 1.0 DESCRIPTION "A discord bot") -find_package(Python3 REQUIRED COMPONENTS Interpreter Development) - # Add DPP as dependency add_subdirectory(libs/DPP) @@ -17,7 +15,7 @@ add_executable(${PROJECT_NAME} # Linking libraries target_link_libraries(${PROJECT_NAME} dpp - Python3::Python + curl ) # Specify includes diff --git a/build/CMakeFiles/Makefile.cmake b/build/CMakeFiles/Makefile.cmake index 032442d..8319d9f 100644 --- a/build/CMakeFiles/Makefile.cmake +++ b/build/CMakeFiles/Makefile.cmake @@ -42,8 +42,6 @@ set(CMAKE_MAKEFILE_DEPENDS "/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake" "/usr/share/cmake-3.18/Modules/FindPackageMessage.cmake" "/usr/share/cmake-3.18/Modules/FindPkgConfig.cmake" - "/usr/share/cmake-3.18/Modules/FindPython/Support.cmake" - "/usr/share/cmake-3.18/Modules/FindPython3.cmake" "/usr/share/cmake-3.18/Modules/FindThreads.cmake" "/usr/share/cmake-3.18/Modules/FindZLIB.cmake" "/usr/share/cmake-3.18/Modules/GNUInstallDirs.cmake" diff --git a/build/CMakeFiles/Progress/1 b/build/CMakeFiles/Progress/1 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/1 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/10 b/build/CMakeFiles/Progress/10 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/10 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/11 b/build/CMakeFiles/Progress/11 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/11 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/12 b/build/CMakeFiles/Progress/12 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/12 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/13 b/build/CMakeFiles/Progress/13 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/13 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/14 b/build/CMakeFiles/Progress/14 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/14 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/15 b/build/CMakeFiles/Progress/15 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/15 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/16 b/build/CMakeFiles/Progress/16 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/16 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/17 b/build/CMakeFiles/Progress/17 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/17 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/18 b/build/CMakeFiles/Progress/18 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/18 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/19 b/build/CMakeFiles/Progress/19 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/19 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/2 b/build/CMakeFiles/Progress/2 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/2 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/20 b/build/CMakeFiles/Progress/20 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/20 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/21 b/build/CMakeFiles/Progress/21 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/21 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/22 b/build/CMakeFiles/Progress/22 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/22 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/23 b/build/CMakeFiles/Progress/23 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/23 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/24 b/build/CMakeFiles/Progress/24 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/24 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/25 b/build/CMakeFiles/Progress/25 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/25 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/26 b/build/CMakeFiles/Progress/26 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/26 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/27 b/build/CMakeFiles/Progress/27 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/27 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/28 b/build/CMakeFiles/Progress/28 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/28 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/29 b/build/CMakeFiles/Progress/29 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/29 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/3 b/build/CMakeFiles/Progress/3 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/3 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/30 b/build/CMakeFiles/Progress/30 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/30 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/31 b/build/CMakeFiles/Progress/31 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/31 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/32 b/build/CMakeFiles/Progress/32 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/32 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/33 b/build/CMakeFiles/Progress/33 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/33 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/34 b/build/CMakeFiles/Progress/34 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/34 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/35 b/build/CMakeFiles/Progress/35 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/35 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/36 b/build/CMakeFiles/Progress/36 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/36 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/37 b/build/CMakeFiles/Progress/37 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/37 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/38 b/build/CMakeFiles/Progress/38 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/38 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/39 b/build/CMakeFiles/Progress/39 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/39 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/4 b/build/CMakeFiles/Progress/4 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/4 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/40 b/build/CMakeFiles/Progress/40 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/40 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/41 b/build/CMakeFiles/Progress/41 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/41 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/42 b/build/CMakeFiles/Progress/42 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/42 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/43 b/build/CMakeFiles/Progress/43 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/43 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/44 b/build/CMakeFiles/Progress/44 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/44 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/45 b/build/CMakeFiles/Progress/45 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/45 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/46 b/build/CMakeFiles/Progress/46 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/46 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/47 b/build/CMakeFiles/Progress/47 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/47 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/48 b/build/CMakeFiles/Progress/48 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/48 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/49 b/build/CMakeFiles/Progress/49 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/49 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/5 b/build/CMakeFiles/Progress/5 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/5 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/50 b/build/CMakeFiles/Progress/50 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/50 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/51 b/build/CMakeFiles/Progress/51 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/51 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/52 b/build/CMakeFiles/Progress/52 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/52 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/53 b/build/CMakeFiles/Progress/53 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/53 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/54 b/build/CMakeFiles/Progress/54 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/54 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/55 b/build/CMakeFiles/Progress/55 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/55 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/56 b/build/CMakeFiles/Progress/56 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/56 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/57 b/build/CMakeFiles/Progress/57 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/57 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/58 b/build/CMakeFiles/Progress/58 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/58 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/59 b/build/CMakeFiles/Progress/59 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/59 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/6 b/build/CMakeFiles/Progress/6 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/6 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/60 b/build/CMakeFiles/Progress/60 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/60 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/61 b/build/CMakeFiles/Progress/61 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/61 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/62 b/build/CMakeFiles/Progress/62 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/62 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/63 b/build/CMakeFiles/Progress/63 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/63 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/64 b/build/CMakeFiles/Progress/64 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/64 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/65 b/build/CMakeFiles/Progress/65 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/65 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/66 b/build/CMakeFiles/Progress/66 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/66 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/67 b/build/CMakeFiles/Progress/67 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/67 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/68 b/build/CMakeFiles/Progress/68 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/68 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/69 b/build/CMakeFiles/Progress/69 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/69 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/7 b/build/CMakeFiles/Progress/7 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/7 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/70 b/build/CMakeFiles/Progress/70 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/70 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/71 b/build/CMakeFiles/Progress/71 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/71 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/72 b/build/CMakeFiles/Progress/72 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/72 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/73 b/build/CMakeFiles/Progress/73 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/73 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/74 b/build/CMakeFiles/Progress/74 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/74 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/75 b/build/CMakeFiles/Progress/75 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/75 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/76 b/build/CMakeFiles/Progress/76 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/76 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/77 b/build/CMakeFiles/Progress/77 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/77 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/78 b/build/CMakeFiles/Progress/78 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/78 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/79 b/build/CMakeFiles/Progress/79 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/79 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/8 b/build/CMakeFiles/Progress/8 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/8 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/80 b/build/CMakeFiles/Progress/80 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/80 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/81 b/build/CMakeFiles/Progress/81 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/81 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/82 b/build/CMakeFiles/Progress/82 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/82 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/83 b/build/CMakeFiles/Progress/83 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/83 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/84 b/build/CMakeFiles/Progress/84 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/84 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/85 b/build/CMakeFiles/Progress/85 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/85 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/86 b/build/CMakeFiles/Progress/86 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/86 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/87 b/build/CMakeFiles/Progress/87 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/87 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/88 b/build/CMakeFiles/Progress/88 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/88 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/89 b/build/CMakeFiles/Progress/89 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/89 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/9 b/build/CMakeFiles/Progress/9 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/9 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/90 b/build/CMakeFiles/Progress/90 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/90 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/91 b/build/CMakeFiles/Progress/91 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/91 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/92 b/build/CMakeFiles/Progress/92 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/92 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/93 b/build/CMakeFiles/Progress/93 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/93 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/94 b/build/CMakeFiles/Progress/94 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/94 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/95 b/build/CMakeFiles/Progress/95 deleted file mode 100644 index 7b4d68d..0000000 --- a/build/CMakeFiles/Progress/95 +++ /dev/null @@ -1 +0,0 @@ -empty \ No newline at end of file diff --git a/build/CMakeFiles/Progress/count.txt b/build/CMakeFiles/Progress/count.txt deleted file mode 100644 index 29d6383..0000000 --- a/build/CMakeFiles/Progress/count.txt +++ /dev/null @@ -1 +0,0 @@ -100 diff --git a/build/CMakeFiles/gbp-bot.dir/DependInfo.cmake b/build/CMakeFiles/gbp-bot.dir/DependInfo.cmake index 7d67878..6739e2f 100644 --- a/build/CMakeFiles/gbp-bot.dir/DependInfo.cmake +++ b/build/CMakeFiles/gbp-bot.dir/DependInfo.cmake @@ -11,7 +11,6 @@ set(CMAKE_CXX_COMPILER_ID "GNU") # The include file search paths: set(CMAKE_CXX_TARGET_INCLUDE_PATH "../libs/DPP/include" - "/usr/include/python3.9" ) # Targets to which this target links. diff --git a/build/CMakeFiles/gbp-bot.dir/build.make b/build/CMakeFiles/gbp-bot.dir/build.make index 1a5f31a..0847151 100644 --- a/build/CMakeFiles/gbp-bot.dir/build.make +++ b/build/CMakeFiles/gbp-bot.dir/build.make @@ -99,7 +99,6 @@ gbp__bot_EXTERNAL_OBJECTS = gbp-bot: CMakeFiles/gbp-bot.dir/src/main.cpp.o gbp-bot: CMakeFiles/gbp-bot.dir/build.make gbp-bot: libs/DPP/libdpp.so.1.0 -gbp-bot: /usr/lib/x86_64-linux-gnu/libpython3.9.so gbp-bot: /usr/lib/x86_64-linux-gnu/libcrypto.so gbp-bot: /usr/lib/x86_64-linux-gnu/libssl.so gbp-bot: /usr/lib/x86_64-linux-gnu/libz.so diff --git a/build/CMakeFiles/gbp-bot.dir/flags.make b/build/CMakeFiles/gbp-bot.dir/flags.make index 1959a99..057fbab 100644 --- a/build/CMakeFiles/gbp-bot.dir/flags.make +++ b/build/CMakeFiles/gbp-bot.dir/flags.make @@ -4,7 +4,7 @@ # compile CXX with /usr/bin/c++ CXX_DEFINES = -CXX_INCLUDES = -I/home/seth/documents/programming/discord-bots/gbp/libs/DPP/include -isystem /usr/include/python3.9 +CXX_INCLUDES = -I/home/seth/documents/programming/discord-bots/gbp/libs/DPP/include CXX_FLAGS = -std=gnu++17 diff --git a/build/CMakeFiles/gbp-bot.dir/link.txt b/build/CMakeFiles/gbp-bot.dir/link.txt index d144960..34bee99 100644 --- a/build/CMakeFiles/gbp-bot.dir/link.txt +++ b/build/CMakeFiles/gbp-bot.dir/link.txt @@ -1 +1 @@ -/usr/bin/c++ CMakeFiles/gbp-bot.dir/src/main.cpp.o -o gbp-bot -Wl,-rpath,/home/seth/documents/programming/discord-bots/gbp/build/libs/DPP libs/DPP/libdpp.so.1.0 /usr/lib/x86_64-linux-gnu/libpython3.9.so /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libsodium.so /usr/lib/x86_64-linux-gnu/libopus.so -lm +/usr/bin/c++ CMakeFiles/gbp-bot.dir/src/main.cpp.o -o gbp-bot -Wl,-rpath,/home/seth/documents/programming/discord-bots/gbp/build/libs/DPP libs/DPP/libdpp.so.1.0 -lcurl /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libsodium.so /usr/lib/x86_64-linux-gnu/libopus.so -lm diff --git a/src/commands.cpp b/src/commands.cpp new file mode 100644 index 0000000..2a76349 --- /dev/null +++ b/src/commands.cpp @@ -0,0 +1,77 @@ +#include "gbp.cpp" +#include +#include +#include +#include + +void init_commands(dpp::commandhandler &command_handler) +{ + command_handler.add_command( + "findname", + { + {"Username", dpp::param_info(dpp::pt_string, false, "The github usename to search for")} + }, + [&command_handler](const std::string &command, const dpp::parameter_list_t ¶meters, dpp::command_source src) { + std::string username; + if (!parameters.empty()) + username = std::get(parameters[0].second); + std::string response = find_username(username); + command_handler.reply(dpp::message(response), src); + }, + "Finds the github username, and their associated GBP value.", + 865347537287249980 + ); + + + std::cout << "Command added!\n"; + command_handler.add_command( + "findgbp", + { + {"GBP Amount", dpp::param_info(dpp::pt_string, false, "Amount of GBP to search for")} + }, + [&command_handler](const std::string &command, const dpp::parameter_list_t ¶meters, dpp::command_source src) { + int gbp; + if (!parameters.empty()) + gbp = std::stoi(std::get(parameters[0].second)); + std::string response = find_gbp(gbp); + command_handler.reply(dpp::message(response), src); + }, + "Finds the users with the amount of GBP provided.", + 865347537287249980 + ); + + std::cout << "Command added!\n"; + command_handler.add_command( + "findpos", + { + {"GBP Amount", dpp::param_info(dpp::pt_string, false, "Amount of GBP to search for")} + }, + [&command_handler](const std::string &command, const dpp::parameter_list_t ¶meters, dpp::command_source src) { + int pos; + if (!parameters.empty()) + pos= std::stoi(std::get(parameters[0].second)); + std::string response = find_gbp_pos(pos); + command_handler.reply(dpp::message(response), src); + }, + "Finds the users with the amount of GBP provided.", + 865347537287249980 + ); + + std::cout << "Command added!\n"; + command_handler.add_command( + "fetchgbp", + { + {"Test", dpp::param_info(dpp::pt_string, true, "test")} + }, + [&command_handler](const std::string &command, const dpp::parameter_list_t ¶meters, dpp::command_source src) { + fetch_raw_gbp(); + command_handler.reply(dpp::message("Fetched latest GBP!"), src); + }, + "Fetches the latest GBP.", + 865347537287249980 + ); + + std::cout << "Command added!\n"; +} + + diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..5312e25 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,26 @@ +#include +#include +#include +#include +#include "commands.cpp" + +using json = nlohmann::json; + +int main() +{ + json config; + std::ifstream config_file("../config.json"); + config_file >> config; + std::string token = config["token"]; + dpp::cluster bot(token, dpp::i_default_intents | dpp::i_message_content); + + bot.on_log(dpp::utility::cout_logger()); + + dpp::commandhandler command_handler(&bot); + command_handler.add_prefix("!gbp "); + + init_commands(command_handler); + + bot.start(false); + return 0; +}