MAKING A DISCORD BOT IN C# - HOW TO MAKE COMMANDS (#2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น •

  • @R1kduv
    @R1kduv 9 หลายเดือนก่อน +2

    This is really good, haven't had this fun coding in a while. Very good videos.

  • @a.9913
    @a.9913 2 หลายเดือนก่อน

    You know, I think you have a knack for this. I haven't had an instructor that explained things as well as you. I'm curious about how familiar you are with best practices and the like; I'd love to know more general tips and stuff!

  • @Leon-km8rk
    @Leon-km8rk ปีที่แล้ว +13

    10:50 "Now at this point you've probably tried to start this bot, executing this command and saying why does this not work?" That is exactly what happened 😂

    • @matix2862
      @matix2862 2 หลายเดือนก่อน

      Literally the same

  • @greennlvr
    @greennlvr 10 หลายเดือนก่อน +1

    My command works but at the suggestion pop up it doesn't appear?

  • @tongvietdung5908
    @tongvietdung5908 ปีที่แล้ว +4

    My command works but it is not suggested in the text box. What should I do?

  • @lyfeal
    @lyfeal ปีที่แล้ว +2

    I am actually getting an issue that the program.cs is not recognizing the namespace from the BotName.commands; been trouble shooting for hours, not entirely sure what would cause this since I am new.

    • @samjesus8
      @samjesus8  ปีที่แล้ว

      thats not normal, try creating a brand new fresh project and try again. If the issue still persists, join our discord server and we will be able to help u further

    • @lyfeal
      @lyfeal ปีที่แล้ว

      @@samjesus8 Absolutely was a me error. The folder structure was causing it to exclude new files, but got that fixed up! Thank you so much for your response.

  • @Mentos_musique
    @Mentos_musique ปีที่แล้ว +2

    my bot does not have the green bot badge, how do I register this or did I do something wrong

  • @Vinksyt
    @Vinksyt ปีที่แล้ว +1

    I have a problem, i have done all the steps one by one till this moment and when i press "Play" the Discord Bot turns online but I'm putting the commands with the prefix, but nothing happens (Discor also does not show the screen with the suggested commands or the command autocomplete when I start to type them)
    Any recomendations?

    • @bronsonbrown6243
      @bronsonbrown6243 ปีที่แล้ว

      I am having the same problem have you found a fix?

    • @thfiee
      @thfiee ปีที่แล้ว

      Hey friend I have found your problem and want to address with it with a fix in the "Program.cs" class where you type Commands.RegisterCommands();
      When you type Commands. This could be using an internal C# class instead of the command method, so try retype this line and make sure the "Commands" is referring to the right thing

    • @etrnl0
      @etrnl0 6 หลายเดือนก่อน

      ​@@bronsonbrown6243my issue was that I forgot to give it the message content intent on the developer portal

  • @AIRoKVietNam
    @AIRoKVietNam ปีที่แล้ว +1

    Hello!!! I made my bot successfull. However, i have a litle problem, my result get double when i requet a syntax. Please help me to solve it. Thank you very much.

  • @SetAngelGreen
    @SetAngelGreen ปีที่แล้ว

    Hi, i encountered this problem: on home PC commands can work asynchronously. When i try to transfer the bot on AWS (free instance), the commands start to be executed sequentially. Even if the command look like this: “write a text to the chat - fall asleep for 30 seconds - write a text to the chat”. Does anyone know how to get around this?

    • @samjesus8
      @samjesus8  ปีที่แล้ว

      if u are "minteiestkitkat" you were very unprofessional there, im not
      replying to this after the post u submitted in the server, u actually
      didn't fix the issue and you just left like that, we were offering to
      give u the actual correct solution..........

  • @spiritretro3571
    @spiritretro3571 ปีที่แล้ว

    im havign trouble converting between the json file to string, says "Newtonsoft.Json.JsonSerializationException: 'Error converting value "token" to type 'DmBot_.config.JSONStructure'. Path '', line 1, position 7.'"
    on this line JSONStructure data = JsonConvert.DeserializeObject(json);

    • @samjesus8
      @samjesus8  ปีที่แล้ว

      Check your JSON file, you might be missing a comma after the token. The formatting might bro wrong

    • @spiritretro3571
      @spiritretro3571 ปีที่แล้ว

      @@samjesus8 i found the problem, i neglected the curly brackets in the json file xD

    • @samjesus8
      @samjesus8  ปีที่แล้ว

      @@spiritretro3571 ah, no wonder. It should work now

  • @ДанилПрикотов-ц3з
    @ДанилПрикотов-ц3з ปีที่แล้ว +1

    ty

  • @loria7169
    @loria7169 ปีที่แล้ว

    P r o m o S M 🙏