Hey everybody Y0kenB here
And today I am going to show you how to use custom commands in discord with Dyno bot
I'll be covering some quick concepts on how to set up a read-only
Suggestions channel and then cover how to set up a custom command which will send all the suggestions into that channel
Following that I'll expand on some more custom commands by creating a report command where members in your discord server can
Report offenders - and remember you can see these commands in my discord server
so
Please come join
By following the link in the description below
And be sure to subscribe to my channel and hit that like button down below if the video helped you in any way
It supports me tremendously
but without further ado, let's get into the
suggestions command
just to show you here quickly from anywhere in the server if I type in "?suggest"
and then my suggestion
That pops it into the suggestions channel over here and
You can see that Y0kenB suggested and my suggestion - so that is just a quick example
Now because I'm an admin I can delete that but go into the Edit channel in the permissions is I have locked down
everything so everyone can't do anything in this channel and
Then every single role that I have I said they can read the messages
They can read the message history and they can add reactions. So this is the way that you set up an entirely read-only
channel one thing to note however is
On the henchman, which is all my BOTS
That is the only one that can still do something that can still post and send messages and all that kind of stuff
Because you do want the Dyno bot to be able to write into this channel
Everybody else is locked down now with the channel set up
Let me show you how to do that suggestion command. It is very straightforward
So I logged into the Dyno bot web dashboard
Went down to custom commands add at the command name of suggest or whatever. You would like to say. Now. Here's the first
Tricky little bit. So the hash says that it's a channel you can see that down here
Curly bracket hash channel shows you that it is a channel link. So all this says is respond in to the suggestions Channel and
Create the following content. So we've got the user who created the command and then just normal text
Suggested and whatever your suggestion you'll see this parameter 1 +
that you can see over here as a parameter 1 2 or 3 means
however, you specified the command if I went "?suggest"
"?suggest"
and
The suggestion the and would be parameter 1
the would be parameter 2 and
Suggestion would be parameter 3
now because I said parameter 1 + it'll take 1 +
Everything behind it
So essentially it just means that whatever they typed off to the command name
I want all of that information to go into the suggestions box. And that is it. That is the end of these suggestion
quickly set up the
Channel as read-only and create this command so you can see over here. I've already created this command
Now just a little bit more on the fly. Let us create a
Custom report command
I'm gonna go get report
Now where do we want to change this to we want to
respond
into the
Let's make it the logs Channel
First things first I am going to
Delete the command which means when somebody types in the report
Command in the general channel as soon as they reported it that command will actually disappear in the general channel
So nobody will know that they've been reported.
I want to respond into the logs Channel and I want to say
Let's go let's call out a
group name so
for the dragon slayers
dragon
slayers a
Report has been submitted submitted
Now you can see this and dragon slayers down over here. We've got the &roll
That will now ping the dragon slayers roll
Now we just need to fill out the content so let's go at this time
Make it bold
standard markup
So at this time and we say this
this particular date and
this time in
12-hour format why not so that will give you the a.m. and the p.m
Then we go
And I'm just specifying that put whatever the channel is where the person created this command from into the channel over here
So if I created it from the general channel, the general channel name will be popping up over there
The reporter
Now the reporter is the user
Who executed the command. So if I executed the ?report command
my name or my user name will actually be entered into them
What else is there let's go the offender so somebody did something
And I reported
The parameter one
No, I'll get back to that so what I want to do over here is I want to go and say
report
Let's go
Stealthy Raptor, which is my test account. I'm gonna report stealthy Raptor for not attending
Breakfast
because
That is just wrong. Okay, I'm not going to press ENTER just yet or press ENTER as soon as this commands done
So the offender is parameter one
and then the reason
Or the offence probably is a better prints
And for this I want to take
parameter to and
everything behind that so again if you look at this
Stealthy Raptor will be parameter one and then this will be parameter two
Plus everything behind it. So we've got our command. We've got to delete the command after we use it
We're going to respond in to the logs channel over here
Down at the bottom over here is the logs Channel
We're gonna specify the time
Channel name the user name who was offending. What was the offense?
one thing to note is that you have to
You can't have these
things these commands in in line
like this and you also
If I get here this is a full-blown ENTER
That's what you want to do. You don't want to do a SHIFT + ENTER
I don't know why but sometimes I've encountered problems with the shift enter
so please just do a full-blown ENTER while you're creating the commands make sure that every single command is on its own line and
Once you get to the actual content over here, you can have it next to each other or whatnot. It doesn't really matter
But when you when you're talking about a full command that needs to happen
That needs to be on its own line
Okay, so now we're just going to click on add so we've got the report command. We're gonna add that
Checking in the commands we can see the report command. It's got the delete respond logs. Bla bla bla
Don't worry that it's put it in line over here. It always does
and
Then it will get back. We've got the report come on to ever there
And now we should see something pop up in the logs as soon as I press ENTER. Yep
So you'll see it created it it removed it and then popped it into the logs
We go down to the bottom of the logs a
Report has been submitted at this time and date in
the suggestions channel
from Y0kenB, the fender was stealthy Raptor and the offence is for not attending breakfast as
easy as that you have done your custom commands you have
Specified where it needs to go to
with the respond
to the target channel name
you've called out any roles that you need to call out and
You've used a lot of these variables which you can see just at the bottom of the variables. Come on
That's it. Thank you for watching. I hope this helps again. Please click the subscribe button
Come join the channel in discord say hi discover a lot of new things
Join the community, press the like button down below
Thank you for watching
Y0kenB out.