Skip to content

Instantly share code, notes, and snippets.

@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_8.bbtag
Created April 10, 2021 23:09
_autoresponse_8.bbtag
{//;ar add /^<:.*[0-9]>$/ -R}
{if;{userhasrole;428637054922915850;{userid};quiet};==;true;
{switch;{messagetext};
{emojis};
{set;!~emoji;{messagetext}}
{delete}
{void;{reactadd;{channelid};{exec;bot.sh.last.message.id};{get;~emoji}}}}}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_7.bbtag
Created April 10, 2021 23:09
_autoresponse_7.bbtag
{//;ar add /^\^+$/ -R}
{delete}
{void;{reactadd;{channelid};{exec;bot.sh.last.message.id};<a:this:401639104305037323>}}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_6.bbtag
Created April 10, 2021 23:09
_autoresponse_6.bbtag
{//;autoresponse add /^(apt\ssearch|apt-get\ssearch|zyp\sse|zyp\ssearch|zypper\sse|zypper\ssearch|pacman\s-Si|pacman\s-Ss)/ -R}
{if;{userhasrole;428637054922915850;{userid};quiet};!=;false;
{switch;{jget;{split;{messagetext};{space}};0};
["apt"];
{exec;apt;{jget;{split;{messagetext};{space}};2}};
["apt-get"];
{exec;apt-get;{jget;{split;{messagetext};{space}};2}};
["zyp","zypper"];
{exec;zyp;{jget;{split;{messagetext};{space}};2}};
["pacman"];
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_5.bbtag
Created April 10, 2021 23:08
_autoresponse_5.bbtag
{//;autoresponse add /.{1100,}/g -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{exec;blargpaste;{messagetext}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_4.bbtag
Created April 10, 2021 23:07
_autoresponse_4.bbtag
{//;autoresponse add /(mint|solus|manjaro|endeavour|kali|parrot|zorin|popos|pop\!_os)/gi -R}
{switch;{channelcategory};
["484511388685959179"];
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{set;!~distro.array;[]}
{foreach;~word;{split;{lower;{regexreplace;{messagetext};/(\.|\?|\(|\)|,|\!)/gi;}};{space}};
{switch;{get;~word};
["mint","solus","manjaro","endeavour","garuda","artix","arco","kali","parrot","parrotos","popos","pop_os","zorin","zorinos"];
{push;~distro.array;{capitalize;{get;~word}}}
{commit}}}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_3.bbtag
Created April 10, 2021 23:06
_autoresponse_3.bbtag
{//;autoresponse add /(btw i use|i use .* btw)/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{delete}
{void;{send;{channelid};btw I use <a:banhammer:410524669138042881>, {usernick}.}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_2.bbtag
Created April 10, 2021 23:06
_autoresponse_2.bbtag
{//;autoresponse add /([a-z])\1{15}/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{delete}
{void;{send;{channelid};Spam detected from {usernick}.}}
}
@DiscordLinuxBot
DiscordLinuxBot / _autoresponse_0.bbtag
Created April 10, 2021 23:06
_autoresponse_0.bbtag
{//;autoresponse add /bruh/gi -R}
{if;{userhasrole;457281742844330004;{userid};quiet};!=;true;
{void;{reactadd;{channelid};{messageid};<:glare:504911469943717909>}}}
@DiscordLinuxBot
DiscordLinuxBot / give.tty.bbtag
Created April 10, 2021 23:04
give.tty.bbtag
{if;{channelid};!=;488558732893093929;
{return}}
{suppresslookup}
{set;!~usr;{flag;_}}
{if;{exec;usercheck;{get;~usr}};==;false;
{void;{send;488558732893093929;;{embedbuild;
title:ℹ Invalid User ID or User Not In {guildname};
fields.name:Input;
fields.value:{flag;_};
fields.inline:false;
{fallback;}
{if;{logic;||;
{bool;{args;0};==;{null}};
{bool;{args;1};==;{null}}};
{exec;Err;Missing arguments.}
{return}}
{execcc;warn;{args;1};-c 1;-r Rule #{args;0};{if;{flag;m};!=;{null};-m {flag;m}}}