in ,

Create Announcement Command Through DBD for Discord Bot

Announcement command is use to announce anything by bot.

First we need to create set Announcement channel command which will set the Announcement channel where all Announcement message will be send.

– Create var with name an with no value.

SET ANNOUNCEMENT

$nomention
$argsCheck[>1;Please mention the Announcement channel]
$setServerVar[an;$mentionedChannels[<;yes]]
$title[ANNOUCE CHANNEL]
$color[#ff2052]
$description[**ANNOUNCE CHANNEL HAS BEEN SET !**] 

Now you need to create a announcement which will contain your announcement message and send to seted announcement channel.

ANNOUNCEMENT

$nomention
$argsCheck[>1;Please write message]
$title[📢 ANNOUNCEMENT]
$color[#ff2052]
$description[$message]
$useChannel[$getServerVar[an]]
$footer[Announcement by $username]
$suppressErrors 

Now we need to create the command that disable the Announcement function.

RE>REMOVE ANNOUNCEMENT

$nomention
$setServerVar[an;]
$title[ANNOUNCEMENT DISABLED]
$color[#ff2052]
$description[**ANNOUNCEMENT IS DISABLED BY $username**] 

Related Posts

Written by Senpai

"This may be a virtual world,but I feel more alive here then in the real world"

Leave a Reply

One Comment