Create Announcement Command Through DBD for Discord Bot 1

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 !**] 
Create Announcement Command Through DBD for Discord Bot 2

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 
Create Announcement Command Through DBD for Discord Bot 3

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

REMOVE ANNOUNCEMENT

$nomention
$setServerVar[an;]
$title[ANNOUNCEMENT DISABLED]
$color[#ff2052]
$description[**ANNOUNCEMENT IS DISABLED BY $username**] 
Create Announcement Command Through DBD for Discord Bot 4

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *