Code Your Own Discord Bot - Basic Command Handler (2021)

Sdílet
Vložit
  • čas přidán 25. 06. 2020
  • Code your own Discord bot! Coding a basic command handler can be very easy when you try discord js. This video shows you how to create custom commands for your own discord bot using this basic method. I will be uploading the advance method tomorrow morning! Coding your own discord bot is very easy!
    🡺 Discord Server: / discord
    🡺 SECOND CHANNEL: / alesh
    🡺 Twitch Channel: / itzalesh
    🡺 Twitter: / itzalesh
    NodeJS: nodejs.org/en/
    Visual Studio Code: code.visualstudio.com/
    Discord Developer Portal: discordapp.com/developers/
    Permissions Calculator: discordapi.com/permissions.html
  • Věda a technologie

Komentáře • 1,9K

  • @CodeLyon
    @CodeLyon  Před 3 lety +104

    Come join my discord server -> discord.gg/lyon

  • @Akatsuki-21
    @Akatsuki-21 Před 3 lety +982

    me when I got my bot to say hi:
    *p r o g r a m m e r*

    • @boombasticx
      @boombasticx Před 3 lety +16

      Same Bro............SAME

    • @dqrks
      @dqrks Před 3 lety +1

      LOL XD

    • @tanzeelkhan8046
      @tanzeelkhan8046 Před 3 lety

      XD

    • @unknown_1213
      @unknown_1213 Před 3 lety +6

      My bot goes offline when I close command prompt and visual studio code
      How can I keep it online 24/7

    • @xyvbzz1856
      @xyvbzz1856 Před 3 lety +2

      @@unknown_1213 czcams.com/video/8qIsRzV0Hpg/video.html

  • @brainzistasty4112
    @brainzistasty4112 Před 4 lety +1065

    i literally cried when my little bot guy said "pong!"

    • @asifulakib965
      @asifulakib965 Před 4 lety +53

      I hope I can feel it to . But my but doesn't start

    • @kyron7850
      @kyron7850 Před 4 lety +3

      asiful akib have you got the correct token?

    • @kyron7850
      @kyron7850 Před 4 lety +5

      asiful akib try changing the token

    • @vonckjenl3633
      @vonckjenl3633 Před 4 lety +27

      @@kyron7850 my bot has the right token. it comes online when i do node . but still it doesnt respond
      i have the code exceacly the same

    • @asifulakib965
      @asifulakib965 Před 4 lety +4

      @@kyron7850 I ve change it once . I think I'll try again .

  • @_Vexzz
    @_Vexzz Před 3 lety +247

    you know he is a coder if he is Coding at 3 AM lmao

  • @theinfinitevoid7855
    @theinfinitevoid7855 Před 3 lety +571

    Me: gets an error
    Also me: spends 3 hours to try to find out my error
    Also Also me: cant spell message

  • @alanli8991
    @alanli8991 Před 3 lety +127

    pc: error!
    me: spends like an hour adjusting everything
    me: inserts ; symbol at line 5
    pc: everything works

  • @TotallyNotLuna741
    @TotallyNotLuna741 Před 2 lety +8

    This is the only person that makes a Coding video actually enjoyable

  • @Area51ofTech
    @Area51ofTech Před 3 lety +5

    You were so helpful step by step and made it so easy and made it in parts so you can go in depth, I dropped a sub to your channel

  • @iisushristos4380
    @iisushristos4380 Před 4 lety +10

    yo this man is a total genius, thanks man!

  • @itsKeyl
    @itsKeyl Před 4 lety +3

    Following this playlist. Can't wait for the next!

  • @mr_sebo4037
    @mr_sebo4037 Před 4 lety +8

    New video! Yeeeeeeeeeeeet
    You are so helpful! Thanks so much! :D

  • @crosstr15
    @crosstr15 Před 3 lety +3

    I already did some of this, but........... this guy is awesome! I looked at his channel and is full of these things, which motivates me. I always wanted to have my own bot.

  • @Voxelstice
    @Voxelstice Před 3 lety +1

    Woah... I have been using the old discord.js code a while. Thank you for making this video!

  • @ID_Station
    @ID_Station Před 3 lety +8

    It would be cool if you included that this was part 2. It was very difficult finding this next part. But other than that, I feel so smart making it this far lol

  • @Dynamic1619
    @Dynamic1619 Před 4 lety +3

    Nice vid, Keep it up! Cant wait for more!

  • @lucvdk1155
    @lucvdk1155 Před 2 lety

    Thanks for the tutorial CodeLyon. I was having difficulties making it work until i realised i put a . where there was not meant to be one haha but i keep learning from your videos thank you so much.

  • @nnoname70.deleted
    @nnoname70.deleted Před 6 měsíci

    bro ily its the best channel for code education, its so helpfull

  • @Asumji
    @Asumji Před 4 lety +42

    Didn't look in your tutorials for a long time watched you when you had like 200 - 400 subs and you only had like 4 videos for bot tutorials I just wanted to thank you again for teaching me the basics meanwhile now I advanced to making bot commissions and bots from simple moderation bot to advanced highly customizable MEE6 lvl bot. I am rly happy you gained 12 k subs now keep up the great work ^^. and I like that you swapped to const command now and don't use switch(args[0]) anymore because that was so broken and had so many bugs but yeah I later learned to fix it too. Hope you reach 100k soon

  • @bean_s_
    @bean_s_ Před 3 lety +125

    the discord disconnect ping at 6:02 sent me on a search for who the heck I was on call with

    • @insanetadka1651
      @insanetadka1651 Před 3 lety +1

      me too XD

    • @aru-YT
      @aru-YT Před 3 lety +1

      SAMEE i got scared for a sec

    • @barbromp4
      @barbromp4 Před 3 lety

      lol me to

    • @yooforza9481
      @yooforza9481 Před 3 lety +1

      i was singing and when i heard that I just shock,I have 500 people on server in my ming i just said bye guys deleting server rn lol

    • @razvanbrehoi
      @razvanbrehoi Před 3 lety

      6:03 i heard

  • @Arzene22
    @Arzene22 Před 3 lety +1

    Thank you so much for your tutorials. It helps me a bunch as a beginner!

  • @WolfieMoonDev
    @WolfieMoonDev Před 2 lety

    thank you for the tutorials, they are really helpful and im having fun with the bot

  • @SUVET
    @SUVET Před 4 lety +205

    i have just started making my own discord bot using the 2019 tutorials and now your doing newer tutorials that are more updated my luck lol
    edit: no way i go thrugh my gmail see someone replied and i got 50 likes most likes ive ever got on a comment

  • @wagasani4199
    @wagasani4199 Před 3 lety +96

    *Checks description for pastebin*
    *Screams internally*

  • @cjgreen4331
    @cjgreen4331 Před 3 lety

    Bro, this video and its series are so helpful

  • @jordanangelov2215
    @jordanangelov2215 Před 3 lety

    thank you so much for making those videos. This is helping so much!

  • @brookeelizabeth811
    @brookeelizabeth811 Před 3 lety +54

    I lowkey started crying when my bot responded
    Im so proud of myself

    • @arinmcgilvray9945
      @arinmcgilvray9945 Před 3 lety

      same

    • @michaela51
      @michaela51 Před 3 lety +1

      good for you my bot wont even stay on now

    • @JustN3el
      @JustN3el Před 2 lety

      Same bro lol now i got like 150working comms on the bot

    • @blitz19872
      @blitz19872 Před 2 lety

      Me: codes a whole 2d game, what ya' dog'doin

  • @jade0709
    @jade0709 Před 3 lety +15

    for the people who don't know how to open command prompt in visual studio code:
    press Ctrl and ` at the same time. ( the ` key is the key on the top left corner just under Esc)

  • @weslax8346
    @weslax8346 Před 2 lety +2

    This guy is legendary. He is recording this video at 3 AM

  • @tortellini5241
    @tortellini5241 Před 4 lety

    LOVE THIS SERIES

  • @breezehd540
    @breezehd540 Před 4 lety +71

    I’m reading all these comments, and I’ve been having the same problems, I’m new to coding with Discord Bot. It’s not always you’ve coding wrong, save your work shut it down, shut down discord, re open them, put your Bot online, and try that. That’s what I’ve literally been doing. Hope this helps!

    • @yaseenlmao2181
      @yaseenlmao2181 Před 4 lety +4

      YOU’RE A LIFE SAVER

    • @shock3493
      @shock3493 Před 4 lety +2

      DUDE TY
      U HELPED SO MUCH

    • @revonwii7700
      @revonwii7700 Před 4 lety

      It didn’t help me or just said
      Line 2
      Char 1
      Error syntax error
      Code 800A03EA
      Source Microsoft jscript compilation error

    • @wxsen5127
      @wxsen5127 Před 3 lety

      Tysm! take my like

    • @bigshit
      @bigshit Před 3 lety

      do i have to turn my bot offline to update the data, or can i just do node . and have it update automatically

  • @idaolsson3749
    @idaolsson3749 Před 3 lety +14

    For everyone whose bots are online but the commands themselves aren't working (check for typos first ofc), aka the bot seems to just be ignoring them, check the bot permissions, they should have the permission to read/send messages, history etc. Experiment with different permissions, this is what made it work for me.

  • @Rustydusty
    @Rustydusty Před 4 lety

    These tutorials are great I subbed

  • @colttttttt
    @colttttttt Před 3 lety +1

    thanks man! been having alot of troble lately, (because im just now getting into js)

  • @c0dered539
    @c0dered539 Před 4 lety +11

    Please do a tutorial on reaction roles because it is always down

  • @tog8964
    @tog8964 Před 3 lety

    You automatically earned my respect with that Desktop home screen. ✊

  • @draicor
    @draicor Před 3 lety

    Thanks for doing this videos man

  • @pq3o
    @pq3o Před 4 lety +4

    Are you gonna do the music bot tutorial in this series too? Please do...
    Thank you.

  • @ScratchTuto
    @ScratchTuto Před 3 lety +16

    Usually, I would just copy and paste, but I really want to learn that.

  • @igeclan7824
    @igeclan7824 Před 3 lety

    Everyone if you code it and then go to the CMD/command terminal and you type CD {your bot file name} and then type NODE . and it won’t show any errors or won’t say your bot is online I had that issue what worked for me was I refreshed the BOT TOKEN and pasted the new one in the bot login code and when I went to CMD to launch it it said my my bot was online and it was and codelyon big thanks to you I have now watched several of you discord bot tutorial videos!

  • @nikonikostudios9461
    @nikonikostudios9461 Před 4 lety

    Since nobody has made the bot ive been waiting for someone to make, ill just make it myself :)

  • @NardView
    @NardView Před 4 lety +3

    Great tutorial! In the future you should think about a video about having the bot hosted 24/7 :)

    • @TheRealASN
      @TheRealASN Před 4 lety +1

      i solved this issue with a vm :)

    • @urbanevilfr
      @urbanevilfr Před 2 lety +1

      @@TheRealASN you can host it in the cloud so um bruh

  • @Eternalll
    @Eternalll Před 3 lety +67

    Everyone else:
    I cried when my bot said pong!
    Me:
    Forgets the second m in command for 30 minutes

  • @jacksoncomerford2997
    @jacksoncomerford2997 Před 3 lety

    thank you so much man you're AWESOME

  • @akarachaiinthanil4841
    @akarachaiinthanil4841 Před 3 lety

    It is very important to keep spaces. This is the guideline for error code.
    Finally, I done.

  • @UKRUX
    @UKRUX Před 3 lety +72

    how many of u thought while watching the video at 6:06 that if u were disconnected to a discord voice chat xD

  • @rafaelbustillo1308
    @rafaelbustillo1308 Před 3 lety +3

    How can i do so the bot stays online always because when I close my command prompt it goes offline

  • @gaspervrtacnik7406
    @gaspervrtacnik7406 Před 4 lety +1

    Tysm!

  • @callsigndap
    @callsigndap Před 3 lety +2

    thank you very much man ;)

  • @Ais4Drew
    @Ais4Drew Před 4 lety +28

    3:14 long time no comment - but the symbol you’re referencing is called the “pipe” operator 😎

  • @Flixer145
    @Flixer145 Před 4 lety +3

    yeah what if I want to make a same command and the bot send randomize line each being send?
    btw great video, easy to follow

  • @shivin8906
    @shivin8906 Před 3 lety

    thanks it works!!

  • @nica_suares
    @nica_suares Před 3 lety

    Awesome! Ty so much

  • @baconpancakes5353
    @baconpancakes5353 Před 3 lety +15

    I spent a week trying to figure out why tf he wasnt saying pong back and literally cried when I realized this whole time all I was missing was a ; at the end 😭😭

  • @WillTDA
    @WillTDA Před 4 lety +76

    Really good tutorial 😁 I’d like to see a tutorial for reaction roles, so the bot can give the role that the server owner assigned to a reaction icon, for example:
    1. The bot asks what message to assign a reaction to (by message I.D.)
    2. The bot then asks for the emoji to put on the reaction (by emoji I.D.)
    3. Finally the bot asks which role to assign to the reaction
    (Sorry if that didn’t make sense, I can’t explain things too well 😂)

    • @epixerty
      @epixerty Před 4 lety +11

      @@CanaryLivesOn dude he wants to make the command not invite a bot

    • @hotsoda46
      @hotsoda46 Před 11 měsíci

      @@epixerty ?????

    • @epixerty
      @epixerty Před 11 měsíci

      @@hotsoda46 what do u want

    • @lucasli3273
      @lucasli3273 Před 11 měsíci

      You'll never learn to code if you only watch tutorials

    • @hotsoda46
      @hotsoda46 Před 11 měsíci

      @@lucasli3273 not like I've been coding since 2019 and know C#, JavaScript, and Lua, but I guess it's none of your business.

  • @jafman06
    @jafman06 Před 3 lety

    Thank you, you're a life saver

  • @qiv1
    @qiv1 Před 3 lety

    I'll try this tomorrow!

  • @tottozs
    @tottozs Před 4 lety +6

    Can you make a music bot 2020 tutorial please? I started code from 2019 video bot not working so please make a new tutorial. Thank you!

  • @kaiserr2549
    @kaiserr2549 Před 4 lety +5

    i was going with the tutorial, and when i just wanna launch bot there was a error:
    "TypeError: args.shift is not a function"
    How to repair this?

    • @babysharklive8905
      @babysharklive8905 Před 4 lety

      its args.shift() , make sure u wrote that correctly
      pastebin.com/8nRQjjJL here a pastebin file made by me. Refer to this if u face any errors

  • @trazynthemany2011
    @trazynthemany2011 Před 3 lety +2

    I don't quite understand what the purpose of splitting the code is, can anyone explain that to me? I addition, what would be the syntax if I wanted the bot to detect messages without the prefix?

  • @bariumnatrite
    @bariumnatrite Před 3 lety

    thank you so much :D

  • @kei3300
    @kei3300 Před 2 lety +9

    'message' is now deprecated and you need to use 'messageCreate' from now on in 2022! so adjust this in the code from the video.
    EDIT: Also make sure that you have your intents set correctly because now you need to explicitly define your intents for 2022 id look up a more recent tutorial

  • @gigachad8810
    @gigachad8810 Před 3 lety +6

    thanks for including the pastebin i appreciate it ..........

  • @Furscorns
    @Furscorns Před 4 lety

    i set my prefix to "fur" but when i test it out its not responding with pong at all, i checked if my code was the same as yours but it still wont work and yes i did try to save my code

  • @heatheninc.4334
    @heatheninc.4334 Před 3 lety +1

    Thanks!

  • @AlexEEZ
    @AlexEEZ Před 4 lety +14

    I MADE MY BOT SAY :FLUSHED:
    THANK YOU SO VERY MUCH FOR EXISTING!

  • @zyfalol1539
    @zyfalol1539 Před 3 lety +3

    my bot is not respoding!!!!!!!!!

  • @himikoden
    @himikoden Před 3 lety

    So thankful for this easy tutorial!

  • @x9fs
    @x9fs Před 3 lety

    thanks man

  • @krunchie1770
    @krunchie1770 Před 4 lety +5

    I have an issue that I haven't seen anyone tackle, if i use spaces for the commands i want to say/bot to say then they wont work, can anyone help me please? I'm desperate at this point

    • @Uohoodie
      @Uohoodie Před 3 lety +1

      A litte late but I used visualizer's aid and it worked! Instead of the line provided, I used:
      if (command === 'ping'){
      const newLocal = 'Pong Pong Pong Pong';
      message.channel.send(newLocal);

  • @ayoubabbaia1092
    @ayoubabbaia1092 Před 4 lety +15

    when you are watching 1.11 v videos but the code doesn't work and you finally realize codeLyon is back for the new version :D

    • @potatoman4548
      @potatoman4548 Před 4 lety

      I just update the gateway intents, no big deal.

    • @vemoryu1198
      @vemoryu1198 Před 3 lety

      How?

    • @potatoman4548
      @potatoman4548 Před 3 lety

      @@vemoryu1198 discordjs.guide/additional-info/changes-in-v12.html

    • @ayoubabbaia1092
      @ayoubabbaia1092 Před 3 lety

      @@vemoryu1198 there is a new serie for v12
      the old one fir v11 and the code doesnt work anymore

    • @vemoryu1198
      @vemoryu1198 Před 3 lety +1

      Thanks a lot dude, You saved me from going on wrong direction haha

  • @SiglxYt
    @SiglxYt Před 2 lety

    Thanks this helped

  • @Ptrcklngj
    @Ptrcklngj Před 3 lety +2

    what should i do when i want my input commands with spaces?

  • @madebyoffworld8208
    @madebyoffworld8208 Před 3 lety +4

    my bot won't respond with pong! and when I run the node . it says: Segmentation fault: 11 Can someone help me

  • @AlexEEZ
    @AlexEEZ Před 3 lety +13

    I just wanna tell you guys, that I did have problems setting it up at first. Nothing works out immediately once you follow a tutorial, you have to experiment a bit, try out a new way to do the thing you're trying to do. Like how I first followed the 2019 tutorial then the 2020 one. And I had some trouble with getting the discord version show up at first, I had to manually check it and fill it in. Aaand how when I try to run it in the program it doesn't work, but in cmd it does! I had to think of ways to get through these problems first. And to my surprise, it worked perfectly after that! I also found out how to make the bot say the command user's username and tag.
    Don't be afraid to experiment, always experiment. :D

    • @epiccturtle
      @epiccturtle Před 3 lety +1

      yes but everything i try doesnt do anything

    • @AlexEEZ
      @AlexEEZ Před 3 lety +1

      @@epiccturtle well think about it a bit
      what could correlate to/resolve this issue I'm having
      and try to do it a different way
      try new things that the tutorial doesn't tell you about maybe
      of course, it not working at all is also a possible case, if so, I can't really help you with it..

  • @matthewward6106
    @matthewward6106 Před 3 lety

    For the commands like "-ping" does it have to be in lowercase or can I capitalise the first letter?

  • @squaremusic5635
    @squaremusic5635 Před 3 lety

    nvm works ty

  • @andrija6805
    @andrija6805 Před 3 lety +5

    When i say Ping why do i dont get reply i did every step any help?

    • @delta6402
      @delta6402 Před 3 lety

      same. in my terminal it gives me errors

  • @leachosu3428
    @leachosu3428 Před 3 lety +10

    So, I'm trying to make a bot that sends messages at specific times, how can I do that?

    • @steveschaninger2535
      @steveschaninger2535 Před 3 lety

      you need to grab date time from console and post message if the time constant you want your bot wants to post at matches the current date time

    • @leachosu3428
      @leachosu3428 Před 3 lety

      @@steveschaninger2535 and how can i grab date time from console?

    • @steveschaninger2535
      @steveschaninger2535 Před 3 lety

      @@leachosu3428 in JS its Date.now();
      Make sure u assign a variable to it

    • @steveschaninger2535
      @steveschaninger2535 Před 3 lety

      @@leachosu3428 check ur discussion page on your channel. i sent a reply

  • @3400jayyee
    @3400jayyee Před 3 lety

    thank you, you are amazing
    And people say you need school to do this

  • @Minumm
    @Minumm Před 4 lety +1

    the bot doesnt start for me anymore as it just says a syntax error code
    line: 1
    char: 1
    error: synrax error
    code: 800A03EA
    source: microsoft jscript compilation error

  • @dkminova
    @dkminova Před 3 lety +5

    I can't see where your typing

  • @hexednex
    @hexednex Před 2 lety +3

    In case anyone was having trouble with adding a second command, and gets the error Unexpected token ')' make sure you added the ending bracket '}' after the second line

  • @nathanspadafora920
    @nathanspadafora920 Před 3 lety

    hi, so i've started coding a bot for a discord server im in, and I made a basic command. But i changed what I wanted the bot to say, and now when i type the command it doesn't send anything. I've attempted to reset the code and do it again, but still havent gotten any results?

  • @patrickrayle2691
    @patrickrayle2691 Před 3 lety +1

    im having trouble with the else if line of code and im not sure whats wrong with it

  • @TurdalTube
    @TurdalTube Před 3 lety +12

    20 mins later bot corrupts and takes over the universe
    the world: GET EMM!!!!!!

  • @comradejames7813
    @comradejames7813 Před 4 lety +1

    Wouldn't it be better to use a switch statement if you have many commands?

  • @bluevidztv8844
    @bluevidztv8844 Před 3 lety +2

    I have a problem I have done evrything right and typed the code again checked it 5-10 times and the -ping doesnt work im tryng to fix it for an hour and I cant do it can someone please help.

  • @dotroy7033
    @dotroy7033 Před 4 lety +10

    5:27 saving my time

  • @flurl6318
    @flurl6318 Před 3 lety +14

    I tried to make a command where you type !good bot and then it reacts. To do that I tried using
    else if(command == 'good bot')
    for it, but it appears the bot just doesn't recognize this. It doesnt give an error message in visual studio either. If i use
    else if(command == 'goodbot')
    it does react as it should.
    Is there an easy way to do this or not. I tried to google it, but this is my first experience with javascript, so I don't really get what they say.
    Already thanks if someone has an answer!
    edit: I solved it by adding
    const args2 = message.content.slice(prefix.length).split();
    const command2 = args2.shift().toLowerCase();
    and using
    else if(command2 == 'good bot')
    instead. It boils down to just using something that's not a space as argument in split( )

    • @Lucs-zb5gy
      @Lucs-zb5gy Před 3 lety +1

      tysm

    • @1hkd29
      @1hkd29 Před 2 lety +1

      Thank you, spent way too long trying to figure out what was wrong with my code

  • @Ayoubiii
    @Ayoubiii Před 3 lety +2

    why does it not say pong and i did everything right ?

  • @ethanrileytapia588
    @ethanrileytapia588 Před 3 lety

    wow!! new subscriber here

  • @realcraser3559
    @realcraser3559 Před 4 lety +5

    XD "mason gay makeout club" sounds very mature

  • @mohammad4388
    @mohammad4388 Před 4 lety +15

    The bot isn’t responding after when ran the command.
    Do you mind helping me out??? I think that the 2019 method works a little better. @CodeLyon

    • @kekboom7969
      @kekboom7969 Před 4 lety +1

      yeah true same

    • @aweirduserbreh
      @aweirduserbreh Před 4 lety

      same

    • @darren9721
      @darren9721 Před 4 lety +1

      i got it but i went to the advanced and something went wrong so i started from scratch

    • @sinenomine2067
      @sinenomine2067 Před 4 lety +2

      For me its a problem with the 'const command' not being used or something, I don't know why it's doing that ;-;

    • @Gamer-cm9ze
      @Gamer-cm9ze Před 4 lety

      remove /+/ and add Empty and save it and run again

  • @tempotasticc
    @tempotasticc Před 3 lety

    whenever i type "?ping" (question mark is my prefix) it says the prefix is not defined. what do I do?

  • @adibhassan1378
    @adibhassan1378 Před 3 lety +1

    so if i dont want any prefix do i leave blank in the place where we're supposed to put prefix?

  • @carter8292
    @carter8292 Před 4 lety +189

    You never left the code in the description like you said you would

    • @7fiyt
      @7fiyt Před 4 lety +3

      yeah noticed that too lol

    • @Retrosen
      @Retrosen Před 4 lety +17

      Bruh just type it

    • @vonckjenl3633
      @vonckjenl3633 Před 4 lety +69

      here this is the code from mine. it is the excest as in the video.
      const Discord = require('discord.js');
      const client = new Discord.Client();
      const prefix = '-';
      client.once('ready', () => {
      console.log('your bot name is online!');
      });
      client.on('message', message =>{
      if(!message.content.startsWith(prefix) || message.author.bot) return;
      const args = message.content.slice(prefix.length).split(/ +/);
      const command = args.shift().toLowerCase();
      if(command === 'ping'){
      message.channel.send('pong!');
      }
      });
      client.login('your discord bot token');

    • @jackp548
      @jackp548 Před 4 lety +10

      @@vonckjenl3633 what a lad

    • @turtleblade_exe9100
      @turtleblade_exe9100 Před 4 lety

      yeah

  • @bradypoggioli4202
    @bradypoggioli4202 Před 3 lety +3

    I felt like a master hacker when my bot said pong lol

  • @drasgum
    @drasgum Před 4 lety

    i have only 1 question, i have to open command prompt and start the bot every time i want the bot to be online and do what i want?
    your videos are really easy to understand, i wanted to make a bot that deletes all the commands written on only 1 text channel, and it works perfect !

  • @Blaster-the-holobot
    @Blaster-the-holobot Před rokem +2

    Idk why, i dont get any error message but my bot doesn't respond to my command. Does anyone know why?

  • @a1mhndi
    @a1mhndi Před 4 lety +5

    How do I change the pong command so that when it replys it says
    🏓 | Pong! That took 198ms
    or however many ms it took.

    • @SO_Snake
      @SO_Snake Před 4 lety +3

      Change
      ('pong')
      to
      ('🏓 | Pong!')
      it should look like this:
      if(command === 'ping')
      message.channel.send('🏓 | Pong!')