initial commit

This commit is contained in:
2023-12-11 18:09:29 +09:00
commit 8b0d0bbff7
10 changed files with 154 additions and 0 deletions

0
.vscode/c_cpp_properties.json vendored Normal file
View File

7
.vscode/launch.json vendored Normal file
View File

@@ -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": []
}

71
.vscode/settings.json vendored Normal file
View File

@@ -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"
}
}

31
.vscode/tasks.json vendored Normal file
View File

@@ -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++"
}
]
}

6
include/Bot.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include <Bot.hpp>
#include <iostream>
void IBot::test() {
std::cout << "작동함";
}

9
include/Bot.hpp Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <dpp/dpp.h>
class IBot{
private:
public:
void test();
protected:
};

2
include/BumbleCee.cpp Normal file
View File

@@ -0,0 +1,2 @@
#include <BumbleCee.hpp>
#include <iostream>

15
include/BumbleCee.hpp Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <Bot.hpp>
class BumbleCee : public IBot {
public:
static BumbleCee* getInstance() {
static BumbleCee instance;
return &instance;
}
protected:
private:
BumbleCee() {}
BumbleCee(const BumbleCee& ref) {}
~BumbleCee() {}
};

BIN
main Executable file

Binary file not shown.

13
main.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "BumbleCee.hpp"
#include <iostream>
std::string Token = "NzE1OTE2NDg2MTIzOTc4ODEy.GtT2ek.5ckzjEbg73QDS_FEZY_BS-UVpf-ZSEpR98pn80";
int main() {
BumbleCee* my_bot = BumbleCee::getInstance();
IBot bot;
bot.test();
return 0;
}