diff --git a/example/main.cpp b/example/main.cpp index fdf2211..05c533c 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -1,16 +1,35 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include -/*static bool StartsWith(std::string_view str, std::string_view with) { +// cpp 20 where are you ;( +static bool StartsWith(std::string_view str, std::string_view with) { if (str.size() < with.size()) return false; for (int i = 0; i < with.size(); i++) if (str[i] != with[i]) return false; return true; -}*/ +} using namespace neko::discord; class Discord : public BaseClient { @@ -23,7 +42,7 @@ public: printf("Found new guild: %s!\n", guild.name.c_str()); } void onMessageCreate(Message& msg) { - if (msg.content == "!ping") + if (StartsWith(msg.content, "!ping")) msg.Reply("Pong!"); } }; diff --git a/include/neko/discord/channel.hpp b/include/neko/discord/channel.hpp index b3b3060..3d962a4 100644 --- a/include/neko/discord/channel.hpp +++ b/include/neko/discord/channel.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/client.hpp b/include/neko/discord/client.hpp index 5690b42..fef9108 100644 --- a/include/neko/discord/client.hpp +++ b/include/neko/discord/client.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/guild/channel.hpp b/include/neko/discord/guild/channel.hpp index 9d30571..15976d8 100644 --- a/include/neko/discord/guild/channel.hpp +++ b/include/neko/discord/guild/channel.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/guild/emoji.hpp b/include/neko/discord/guild/emoji.hpp index bbd5eec..74240d6 100644 --- a/include/neko/discord/guild/emoji.hpp +++ b/include/neko/discord/guild/emoji.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/guild/guild.hpp b/include/neko/discord/guild/guild.hpp index bf73ca0..ada88cf 100644 --- a/include/neko/discord/guild/guild.hpp +++ b/include/neko/discord/guild/guild.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/guild/member.hpp b/include/neko/discord/guild/member.hpp index 3911eed..22bff7e 100644 --- a/include/neko/discord/guild/member.hpp +++ b/include/neko/discord/guild/member.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/guild/role.hpp b/include/neko/discord/guild/role.hpp index 0e87ae6..c903027 100644 --- a/include/neko/discord/guild/role.hpp +++ b/include/neko/discord/guild/role.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/message.hpp b/include/neko/discord/message.hpp index 3b7d97e..978da15 100644 --- a/include/neko/discord/message.hpp +++ b/include/neko/discord/message.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/nekocord.hpp b/include/neko/discord/nekocord.hpp index 5335966..cbb81cc 100644 --- a/include/neko/discord/nekocord.hpp +++ b/include/neko/discord/nekocord.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include "guild/channel.hpp" diff --git a/include/neko/discord/presence.hpp b/include/neko/discord/presence.hpp index 1f3b5ff..0491c3b 100644 --- a/include/neko/discord/presence.hpp +++ b/include/neko/discord/presence.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/snowflake.hpp b/include/neko/discord/snowflake.hpp index c117b97..a2325d2 100644 --- a/include/neko/discord/snowflake.hpp +++ b/include/neko/discord/snowflake.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/user.hpp b/include/neko/discord/user.hpp index f73a03f..19a08de 100644 --- a/include/neko/discord/user.hpp +++ b/include/neko/discord/user.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/web/http.hpp b/include/neko/discord/web/http.hpp index eaa6116..d24750d 100644 --- a/include/neko/discord/web/http.hpp +++ b/include/neko/discord/web/http.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/web/ratelimit.hpp b/include/neko/discord/web/ratelimit.hpp index c4cc048..636bf35 100644 --- a/include/neko/discord/web/ratelimit.hpp +++ b/include/neko/discord/web/ratelimit.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/include/neko/discord/web/websocket.hpp b/include/neko/discord/web/websocket.hpp index e67fcb0..ece2f86 100644 --- a/include/neko/discord/web/websocket.hpp +++ b/include/neko/discord/web/websocket.hpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #pragma once #include diff --git a/src/channel.cpp b/src/channel.cpp index 665eba3..76d29e9 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include "guild/channel.hpp" diff --git a/src/client.cpp b/src/client.cpp index 444b77e..e18dacf 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include diff --git a/src/guild/channel.cpp b/src/guild/channel.cpp index e1192a5..d5c5366 100644 --- a/src/guild/channel.cpp +++ b/src/guild/channel.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/guild.hpp" #include "channel.hpp" diff --git a/src/guild/emoji.cpp b/src/guild/emoji.cpp index 3358181..9fd3cd1 100644 --- a/src/guild/emoji.cpp +++ b/src/guild/emoji.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/guild.hpp" #include "client.hpp" diff --git a/src/guild/guild.cpp b/src/guild/guild.cpp index dcaf32f..05aa37b 100644 --- a/src/guild/guild.cpp +++ b/src/guild/guild.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/channel.hpp" #include "client.hpp" #include "channel.hpp" diff --git a/src/guild/member.cpp b/src/guild/member.cpp index 1f744eb..aa3fdd9 100644 --- a/src/guild/member.cpp +++ b/src/guild/member.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/guild.hpp" #include "client.hpp" diff --git a/src/guild/role.cpp b/src/guild/role.cpp index effe843..2476fcc 100644 --- a/src/guild/role.cpp +++ b/src/guild/role.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/guild.hpp" #include "guild/role.hpp" diff --git a/src/message.cpp b/src/message.cpp index b05cb0a..014d56d 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "guild/guild.hpp" #include "channel.hpp" #include "client.hpp" diff --git a/src/presence.cpp b/src/presence.cpp index 6db096a..cfb98fe 100644 --- a/src/presence.cpp +++ b/src/presence.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "client.hpp" namespace neko::discord { diff --git a/src/user.cpp b/src/user.cpp index e1722bc..9e45db6 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "user.hpp" namespace neko::discord { diff --git a/src/web/http.cpp b/src/web/http.cpp index 4190d95..8dfc60c 100644 --- a/src/web/http.cpp +++ b/src/web/http.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include diff --git a/src/web/ratelimit.cpp b/src/web/ratelimit.cpp index 6a06a6c..56ff5ae 100644 --- a/src/web/ratelimit.cpp +++ b/src/web/ratelimit.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include "web/ratelimit.hpp" diff --git a/src/web/websocket.cpp b/src/web/websocket.cpp index ae60ac8..40478e4 100644 --- a/src/web/websocket.cpp +++ b/src/web/websocket.cpp @@ -1,4 +1,22 @@ +/* + * Nekocord: A lightning fast discord library for c++ + * Copyright (C) 2018 Rebekah Rowe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include