Created
April 10, 2021 23:12
-
-
Save DiscordLinuxBot/b5a1504824224680ed9c155990f54291 to your computer and use it in GitHub Desktop.
channeltopic.t.bbtag
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;{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}}}; | |
{set;~chan;{channelid}}} | |
{output;{embed;{embedbuild; | |
color:{exec;blurple}; | |
thumbnail.url:{regexreplace;{guildicon};/(\?size=512)/;?size=40}; | |
description:**Topic for <#{get;~chan}>** | |
{jget;{exec;_chaninfo;{get;~chan}};topic};}}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment