commit 8b0d0bbff7a03a24831dfc269df84bf7f0ad0ae8 Author: HappyTanuki Date: Mon Dec 11 18:09:29 2023 +0900 initial commit diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5c7247b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,7 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7695765 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,71 @@ +{ + "files.associations": { + "iostream": "cpp", + "array": "cpp", + "atomic": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "bitset": "cpp", + "cctype": "cpp", + "chrono": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "csignal": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "deque": "cpp", + "list": "cpp", + "map": "cpp", + "set": "cpp", + "string": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "numeric": "cpp", + "random": "cpp", + "ratio": "cpp", + "regex": "cpp", + "source_location": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "fstream": "cpp", + "future": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "istream": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "numbers": "cpp", + "ostream": "cpp", + "semaphore": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cinttypes": "cpp", + "typeinfo": "cpp" + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..e30858d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,31 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: g++ build active file", + "command": "/usr/bin/g++", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}", + "-I", + "${fileDirname}/include", + "-ldpp" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "compiler: /usr/bin/g++" + } + ] + } \ No newline at end of file diff --git a/include/Bot.cpp b/include/Bot.cpp new file mode 100644 index 0000000..dfea483 --- /dev/null +++ b/include/Bot.cpp @@ -0,0 +1,6 @@ +#include +#include + +void IBot::test() { + std::cout << "작동함"; +} diff --git a/include/Bot.hpp b/include/Bot.hpp new file mode 100644 index 0000000..ce6c8eb --- /dev/null +++ b/include/Bot.hpp @@ -0,0 +1,9 @@ +#pragma once +#include + +class IBot{ +private: +public: + void test(); +protected: +}; \ No newline at end of file diff --git a/include/BumbleCee.cpp b/include/BumbleCee.cpp new file mode 100644 index 0000000..d468c4e --- /dev/null +++ b/include/BumbleCee.cpp @@ -0,0 +1,2 @@ +#include +#include \ No newline at end of file diff --git a/include/BumbleCee.hpp b/include/BumbleCee.hpp new file mode 100644 index 0000000..9ff9f24 --- /dev/null +++ b/include/BumbleCee.hpp @@ -0,0 +1,15 @@ +#pragma once +#include + +class BumbleCee : public IBot { +public: + static BumbleCee* getInstance() { + static BumbleCee instance; + return &instance; + } +protected: +private: + BumbleCee() {} + BumbleCee(const BumbleCee& ref) {} + ~BumbleCee() {} +}; \ No newline at end of file diff --git a/main b/main new file mode 100755 index 0000000..eb54d94 Binary files /dev/null and b/main differ diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..419f1fa --- /dev/null +++ b/main.cpp @@ -0,0 +1,13 @@ +#include "BumbleCee.hpp" +#include + +std::string Token = "NzE1OTE2NDg2MTIzOTc4ODEy.GtT2ek.5ckzjEbg73QDS_FEZY_BS-UVpf-ZSEpR98pn80"; + +int main() { + BumbleCee* my_bot = BumbleCee::getInstance(); + IBot bot; + + bot.test(); + + return 0; +} \ No newline at end of file