-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a new basic command
letiulthecode edited this page Nov 18, 2020
·
3 revisions
First we need know the paramters
if : Start an function, example : if someone says "Hi" then repond "hello"
then: final string to start the function, need be with "if" no matter what
Now lets start coding!
client:on('messageCreate', function(message) --creates a function that its maked when someone creates a message
if message.content = "!hi" then --if the message is "!hi" then
message.channel:send("hello!") --we send in channel hello
end
end)
Simple isnt? Well its just the begin! We gonna learn how make an !clear command in another pages