This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {//;help function} | |
| {function;tbothelp; | |
| {set;!~tbot.cats;{request;https://opentdb.com/api_category.php}} | |
| {embed;{embedbuild; | |
| author.name:Open Trivia Database; | |
| author.url:https://opentdb.com/; | |
| author.icon_url:https://pbs.twimg.com/profile_images/879734222814052354/zqwEfDO3_400x400.jpg; | |
| color:383E4E; | |
| title:Help for triviabot; | |
| description:__**Usage**__: `triviabot [check|-c <category number>|-r <number of rounds>]` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {//;make sure command only works if prefix is used with space} | |
| {exec;prefix.test} | |
| {//;only works in #bot-spam for anyone other than sudoers} | |
| {if;{userhasrole;457281742844330004};{//;do nothing}; | |
| {if;{channelid};!=;174317464337776640; | |
| {return}}} | |
| {//;function to output help} | |
| {function;help;{embed;{embedbuild; | |
| title:Help for usermod; | |
| color:yellow; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {exec;prefix.test} | |
| {//;Help function} | |
| {function;help;{embed;{embedbuild; | |
| title:Help for {exec;commandname;profile}; | |
| color:yellow; | |
| description:**__Usage__**: `{exec;commandname;profile} [user{if;{guildid};==;96230004047740928;{space}| arg}]` | |
| Show information about user. {if;{guildid};==;96230004047740928;**The <@&428637054922915850> role is required to use this command.** | |
| If no arguments are passed and you do not have your profile setup, a set of questions will be asked to setup your profile. A copy of your profile will be sent to <#479497706234970115> for others to view easily. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {jget;{request;https://rextester.com/rundotnet/api?LanguageChoice=38;{j;{"method":"GET","headers":{"Content-Type":"application/x-www-form-urlencoded"}}};program={uriencode;{args}}{if;{get;~stdin};!=;{null};&input={get;~stdin}}};body.Result} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {//;due to limited daily use, only allow tag to be used in my guilds. sorry.} | |
| {if;{guildid};!=;204061452707954688;{if;{guildid};!=;96230004047740928;{throw;Sorry, this API has limited uses.}{return}}} | |
| {//;check credits spent for first client credentials} | |
| {jset;~data;clientId;6be500954e4a3ea7795165d21ce5247e;c} | |
| {commit} | |
| {jset;~data;clientSecret;{get;@simon.jdoodle.clientSecret};c} | |
| {commit} | |
| {set;!~jdoodle.uses;{jget;{request;https://api.jdoodle.com/v1/credit-spent;{json;{"method":"POST","headers":{"Content-Type":"application/json"}}};{get;~data}};body.used}} | |
| {//;if credits spent less than 200, use first client} | |
| {if;{get;~jdoodle.uses};<;200; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if;{numformat;{flag;_};};!=;NaN; | |
| {if;{jget;{messageattachments;{flag;_}};0};!=;{null}; | |
| {set;!~raw;{request;{jget;{messageattachments;{flag;_}};0}}} | |
| {set;!~name;{regexreplace;{reverse;{jget;{split;{reverse;{jget;{messageattachments;{flag;_}};0}};/};0}};/\./g;%%%}}; | |
| {jset;~raw;body;{replace;{jget;{split;{messagetext;{flag;_}};{repeat;`;3}};1};{newline};};c} | |
| {commit} | |
| {jset;~raw;contentType;text/plain;c} | |
| {commit} | |
| {set;!~name;{jget;{split;{messagetext;{flag;_}};{space}};4}.bbtag}}; | |
| {set;!~raw;{request;{flag;_}}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {function;upload;{fallback;{exec;fakeimg;Upload Failed.}} | |
| {set;!~url;{exec;qbiner;{params}}} | |
| {embed;{embedbuild; | |
| title:**Link to output**; | |
| url:{get;~url}; | |
| color:{if;{exec;usrclr;{userid}};!=;;{exec;usrclr;{userid}};{exec;blurple}}; | |
| author.name:{usernick}; | |
| author.icon_url:{useravatar}; | |
| footer.text:{get;~url}; | |
| timestamp:{exec;timeconv}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if;{get;~stdin};==;{null};{if;{get;~json};!=;{null};{set;!~stdin;{get;~json}};{set;!~stdin;bob}}}{switch;{commandname};["jq","jsonstringify"];{repeat;`;3}{if;{length;{argsarray}};!=;0;json}{newline}}{jget;{request;https://rextester.com/rundotnet/api?LanguageChoice=38;{j;{"method":"GET","headers":{"Content-Type":"application/x-www-form-urlencoded"}}};Program={uriencode;base64 -d - | jq {args} 2>&1 | perl -pe 'chomp if eof'}&Input={uriencode;{base64encode;{get;~stdin}}}};body.Result}{switch;{commandname};["jq","jsonstringify"];{newline}{repeat;`;3}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {exec;libbash} | |
| {switch;{lower;{args;0}}; | |
| ["comp","complementary"]; | |
| {if;{color;{args;1}};startswith;`;{throw;Invalid hex color input}{return}} | |
| {set;!~colors;["{color;{args;1}}"]} | |
| {push;~colors;{replace;{jget;{exec;motyar;https://www.colorhexa.com/{uriencode;{color;{args;1}}};-x //*[@id="complementary"]/ul/li[2]/a};body.0.text};#;}}; | |
| {if;{color;{args;0}};startswith;`;{throw;Invalid hex color input}{return}} | |
| {set;!~colors;[]} | |
| {foreach;~color;{split;{func.echo;{flag;_}};{space}};{push;~colors;{color;{get;~color};hex}}}} | |
| {if;{length;{get;~colors}};==;1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {//;{set;!~motyarkey;{jget;{exec;grep;-Po '.*hidden.*value="\K.*"' | cut -f1 -d'"';{exec;rawhtml2;{flag;_}}};0}}}{set;!~motyarkey;{jget;{split;{jget;{split;{exec;rawhtml2;https://ipinfo.io/{randchoose;["1.1.1.1","8.8.8.8"]}/geo};value="};1};"};0}}{request;http://motyar.info/webscrapemaster/api?key={get;~motyarkey}&url={uriencode;{flag;_}}&xpath={flag;x}} |