Archived
1
0
Fork 0

Added opensource command

This commit is contained in:
Nils 2021-06-21 23:12:42 +02:00
parent 73dce15840
commit 5db977d9f6
2 changed files with 19 additions and 4 deletions

View file

@ -11,7 +11,7 @@ using namespace CDL;
class Botinfo {
class Useful {
static void serverinfo_roles(CChannel channel) {
channel->get_guild([channel] (CGuild server) {
// Get info text
@ -178,17 +178,32 @@ class Botinfo {
}
}
static void opensource(CMessage, CChannel channel, CDL::cmdargs&) {
channel->send_embed(simpleEmbed("**Tuxiflux** is [FOSS](https://gitlab.com/niansa/tuxiflux) (**f**ree **o**pen **s**ource **s**oftware).\n"
"This means that you are free to view, modify, and redistribute the source code under the terms of the MIT license.\n"
"\n"
"Make your code open source today!\n"
" - Worried about people stealing the code? If that happens, be proud! Bad code doesn't get stolen, good code does!\n"
" - Your code style is so bad that you don't want anyone to see it? No problem! People might even help you improve it!\n"
" - Show people your open source project! If it's interesting and/or well documented enough, some will help!\n"
" - Help others - without doing anything! People learn a lot just by playing around with other open source projects!\n"
"Btw, [Fosshost](https://fosshost.org) offers free hosting for open source projects that need it!\n"
"\n"
" -> Didn't convince you? Read [this](https://www.codeproject.com/articles/5410/why-open-source) nice article!"));
}
public:
Botinfo() {
Useful() {
using namespace CDL;
// Commands
register_command("serverinfo", serverinfo, 1);
register_command("avatar", avatar, 1);
register_command("opensource", opensource, 1);
}
};
static Botinfo botinfo;
static Useful botinfo;

View file

@ -2,7 +2,7 @@ Page **1/1**
• You can call up a page with `{0}help [page]`
:gear: **Useful**
• `serverinfo`, `avatar`
• `serverinfo`, `avatar`, `opensource`
:dollar: **Money**
• `balance/bal`, `pay`, `daily`, `bet`