Skip to content

Instantly share code, notes, and snippets.

@DiscordLinuxBot
DiscordLinuxBot / termbin.bbtag
Created April 10, 2021 23:33
termbin.bbtag
{jset;~head;method;POST;c}{jset;~body;stdin;{base64encode;{args}};c}{jset;~body;program;base64 -d - | nc termbin.com 9999;c}{commit}{replace;{jget;{request;http://syretia.cf/bash?key={exec;syretia.cf};{get;~head};{get;~body}};body.stdout};//;//l.}
{switch;{commandname};
["sybash","bash","_autoresponse_0","_autoresponse_1"];
{jset;~head;method;POST;c}
{commit}
{jset;~body;stdin;{base64encode;{exec;bashrc}};c}
{jset;~body;program;base64 -d - | tr -d '\r' > ./bashrc{semi}source ./bashrc{semi}{args};c}
{commit}
{set;!~json;{jget;{request;http://syretia.cf/bash?key={exec;syretia.cf};{get;~head};{get;~body}};body}}
{fallback;timeout}
{if;{math;+;{length;{jget;~json;stderr}};{length;{jget;~json;stdout}}};>=;1700;
{exec;sybash;curl -sLX {if;{flag;X};==;{null};GET;{flag;X}} '{flag;_}'{if;{flag;H};!=;{null};{space}-H {flag;H}}{if;{flag;d};!=;{null};{space}-d {flag;d}}}{jget;~sybash;stdout}
@DiscordLinuxBot
DiscordLinuxBot / libmod.t.bbtag
Created April 10, 2021 23:15
libmod.t.bbtag
{//;function to warn users}
{//;input order is user, count, reason}
{function;warn;
{suppresslookup}
{//;check if user is in guild}
{jset;~libmod;action;warn;c}
{jset;~libmod;modid;{userid};c}
{if;{params;0};==;{null};
{jset;~libmod;userid;no input given;c};
{jset;~libmod;userid;{userid;{params;0}};c}}
@DiscordLinuxBot
DiscordLinuxBot / _chaninfo.bbtag
Created April 10, 2021 23:13
_chaninfo.bbtag
{jsonstringify;{jget;{request;https://discordapp.com/api/channels/{if;{flag;_};==;{null};{channelid};{exec;chanid;{flag;_}}};{get;@bot.sh.get}};body}}
@DiscordLinuxBot
DiscordLinuxBot / channeltopic.t.bbtag
Created April 10, 2021 23:12
channeltopic.t.bbtag
{if;{commandname};!=;_autoresponse_1;
{exec;prefix.test}}
{function;help;{embed;{embedbuild;
title:Help for {exec;commandname;topic};
color:yellow;
description:Get the topic for a channel.;}}}
{//;Default}
{if;{lower;{args}};==;help;{func.help};
{switch;{exec;chanid;{args;0}};
{channels};{set;~chan;{exec;chanid;{args;0}}};
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_12.bbtag
Created April 10, 2021 23:11
_autoresponse_12.bbtag
{//;ar add /.*(fag|fags|f4g|f4gs|fagg|faggs|faggot|faggots|f4gg0t|f4agg0ts)\b/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{execcc;warn;{userid};-r Hate speech.;-m {messageid}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_11.bbtag
Created April 10, 2021 23:10
_autoresponse_11.bbtag
{//;ar add /.*(nigger|nigga|freetard)/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{execcc;warn;{userid};-r Hate speech.;-m {messageid}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_10.bbtag
Created April 10, 2021 23:10
_autoresponse_10.bbtag
{//;ar add /(?!.?retard(?:ant|ants)).?retard.*/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{execcc;warn;{userid};-r Hate speech.;-m {messageid}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_9.bbtag
Created April 10, 2021 23:10
_autoresponse_9.bbtag
{//;ar add /(dis(co|boa)rd\.(gg|me|org)|discord(app)?\.com\/invite)\/(?!discord-linux|discord-feedback|discord-testers|discord-api|010z0Kw1A9ql5c1Qe|G8Z6TRX|opensuse|gentoo|fedora|Pnt5CuY|uuwK9EV)[a-z0-9].*/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{void;{delete}}
{execcc;warn;{userid};-r Invite link.}
}