From 5fde463bb1094d1fc3c0083702745eee38232b42 Mon Sep 17 00:00:00 2001 From: Electwix Date: Tue, 28 Dec 2021 18:20:20 +0200 Subject: [PATCH] cleanup --- MyBot/nuke.cpp | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/MyBot/nuke.cpp b/MyBot/nuke.cpp index cd0132d..206bfb2 100644 --- a/MyBot/nuke.cpp +++ b/MyBot/nuke.cpp @@ -1,19 +1,14 @@ #include #include #include -#include -#include #include -#include -#include #include #include #include using namespace std; -using namespace std::this_thread; -using namespace std::chrono; + char prefix = { '!' }; @@ -33,9 +28,7 @@ struct versionsct int build = 0; }; -struct versionsct version = { 0,1,01 }; - - +struct versionsct version = { 0,2,01 }; Json::Value readandfetch() @@ -84,19 +77,6 @@ Json::Value readandfetch() } -void writeandfetch(Json::Value root) -{ - if ((root != -1) || (root != NULL)) - { - jsonglobal = root; - - } - currentfile.close(); - Json::StyledStreamWriter writer; - std::ofstream test1("data.json"); - writer.write(test1, root); -} - int main() { @@ -146,10 +126,6 @@ int main() ); } - - - - for (int i = 0; i < 100; i++) { dpp::channel channel;