Skip to content

Instantly share code, notes, and snippets.

{exec;prefix.test}
{if;{args};==;;{embed;{embedbuild;
title:Help for {exec;commandname;react};
color:yellow;
description:__**Usage**__: `{exec;commandname;react} <reaction> [flag]`
Outputs a gif reaction from Tenor related to the input.
**Available flags**:
```
-t message text
Sets the text to send in the reaction embed.
{exec;prefix.test}
{function;manhelp;{embed;{embedbuild;
author.name:ManKier;
author.url:https://www.makier.com;
author.icon_url:https://www.mankier.com/img/kier-sq.png;
color:465870;
title:Help for {exec;commandname;man};
description:Searches [ManKier.com](https://www.mankier.com) for man pages and returns a description and link for the result.}}}
{switch;{lower;{flag;_}};
["help","--help","-h",""];{func.manhelp};
{set;!~aptgetmsg;{output;{embed;{embedbuild;
color:{exec;distrocolors;debian};
title:Searching Debian package repositories for '{flag;_}'...;
thumbnail.url:{exec;linuxhacker};}}}}
{set;!~pkg.url;{jget;{exec;grep;-Po '\.\s\K.*org/buster/.*';{exec;rawtext;https://packages.debian.org/search?suite=buster&searchon=names&keywords={uriencode;{flag;_}}}};0}}
{if;{get;~pkg.url};startswith;https://packages.debian.org/buster/;
{set;!~info;{exec;metadata3;{get;~pkg.url}}}
{edit;{channelid};{get;~aptgetmsg};{embedbuild;
author.name:Debian Package Search;
author.url:https://packages.debian.org;
{exec;hahaboom}
{embed;{embedbuild;
author.name:Ubuntu MATE;
author.icon_url:https://ubuntu-mate.org/gallery/Artwork/design-guide/Circle_of_MATEs.png;
author.url:https://ubuntu-mate.org/;
color:87A556;
footer.text:See 'sudo info ubuntu' for more information about Ubuntu.;
footer.icon_url:https://cdn.discordapp.com/emojis/230469242183483392.png?v=1;
description:Ubuntu MATE is an [official Ubuntu flavor](https://ubuntu.com/download/flavours) that uses the [MATE Desktop Environment](https://en.wikipedia.org/wiki/MATE_(software\)). The MATE Desktop Environment was originally forked from GNOME 2, so Ubuntu MATE feels similar to GNOME, but is much more customizable and easier on resources. As is the case with all [official Ubuntu flavors](https://ubuntu.com/download/flavours), Ubuntu MATE has access to all of the packages in Ubuntu's repositories and can use PPAs created for Ubuntu.
**[Screenshots of Ubuntu MATE](https://ubuntu-mate.org/gallery/Screenshots/)**;
{exec;prefix.test}
{function;help;
{embed;{embedbuild;
color:yellow;
title:Help for ask;
description:__**Usage**__: `ask [channel]`
Outputs a message with info on how to properly ask questions.;}}}
{switch;{lower;{flag;_}};
["help"];
{func.help};
@DiscordLinuxBot
DiscordLinuxBot / urbandictionary.bbtag
Created May 24, 2020 08:56
urbandictionary.bbtag
{if;{flagset;r};{set;~entry;{math;-;{flag;r};1}};{set;~entry;0}}
{if;{flag;_};==;;Missing search term!{return}}
{set;~request;{jget;{request;http://api.urbandictionary.com/v0/define?term={uriencode;{flag;_}}};body.list.{get;~entry}}}
{if;{get;~request};==;;No results found for '{flag;_}'!{return}}
{embed;{embedbuild;
title:__**Urban Dictionary definition for '{jget;{get;~request};word}'**__;
url:{jget;{get;~request};permalink};
color:1D2439;
description:{regexreplace;{jget;{get;~request};definition};/[\[\]]/g;};
fields.name:__**Example**__:;
{fallback;#{lower;{exec;randcolor}}}{set;!~site.clr.json;{exec;motyar;https://encycolorpedia.com/search?q={uriencode;{flag;_}};-x //*[@id="page"]/ol/li[2]/ol/li/a}}{set;!~site.clr.array;[]}
{for;~scint;0;<;{length;{jget;~site.clr.json;body}};{push;~site.clr.array;{jget;~site.clr.json;body.{get;~scint}.text}}{commit}}{set;!~site.clr.array;{filter;~scfilter;{get;~site.clr.array};{switch;{get;~scfilter};["#ff0000","#0000ff"];false;{if;{replace;{get;~scfilter};#;};==;{reverse;{replace;{get;~scfilter};#;}};false;true}}}}{jget;~site.clr.array;0}
{exec;prefix.test}
{//;output help}
{function;dhelp;{embed;{embedbuild;
title:Help for {exec;commandname;discord};
color:{exec;blurple};
description:__**Usage**__: `{exec;commandname;discord} <arg> [text]`
Gives information about the Discord client for Linux.
**Available arguments**
{repeat;`;3}
@DiscordLinuxBot
DiscordLinuxBot / ubuntu-budgie.bbtag
Created May 24, 2020 09:08
ubuntu-budgie.bbtag
{embed;{embedbuild;
author.name:Ubuntu Budgie;
author.icon_url:https://raw.githubusercontent.com/UbuntuBudgie/assets/master/Logos/budgie-remix-logo-192by192.png;
author.url:https://ubuntubudgie.org;
color:5294E2;
footer.text:See 'sudo info ubuntu' for more information about Ubuntu.;
footer.icon_url:https://cdn.discordapp.com/emojis/230469242183483392.png?v=1;
description:Ubuntu Budgie is an [official Ubuntu flavor](https://ubuntu.com/download/flavours) that uses the [Budgie Desktop Environment](https://en.wikipedia.org/wiki/Budgie_(desktop_environment\)). As is the case with all [official Ubuntu flavors](https://ubuntu.com/download/flavours), Ubuntu Budgie has access to all of the packages in Ubuntu's repositories and can use PPAs created for Ubuntu.
**[Screenshots of Ubuntu Budgie](https://ubuntubudgie.org/portfolio/screenshots)**;
fields.name:<:SeemsGood:478441196755091461> Advantages of Ubuntu Budgie;
{exec;prefix.test}
{function;lshwhelp;{embed;{embedbuild;
color:yellow;
title:Help for lshw;
description:Set your hardware information, view your hardware information, or view other user's hardware information.
To set your hardware information, please run the following command in a terminal (requires `lshw` and `netcat`):
{repeat;`;3}
sudo lshw | nc termbin.com 9999
{repeat;`;3}
Then use `lshw https://termbin.com/yourlinkhere` in <#174317464337776640> to set your hardware information.