Code a Discord Bot with Python - Host for Free in the Cloud

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • Learn how to code a Discord bot using Python and host it for free in the cloud using Repl.it.
    🚨Note: At 16:43, Replit now has a new method for environment variables. Check the docs: docs.replit.com/programming-i...
    Along the way, you will learn to use Repl.it's built-in database and create a Discord bot that uses webhooks to connect with GitHub.
    Need help with this tutorial? You can ask questions here: forum.freecodecamp.org/
    This course was developed by Beau Carnes.
    🔗 Online code editor: repl.it
    🔗 Discord Home Page: discord.com/
    🔗 Discord Developer Portal: / discord
    💻 Python server code for bot: gist.github.com/beaucarnes/51...
    💻 Full code on repl.it: repl.it/@BeauCarnes/Encourage...
    ⭐️ Course Contents ⭐️
    ⌨️ (00:00) Introduction
    ⌨️ (01:18) Creating a Discord Server
    ⌨️ (01:52) Creating a Bot User
    ⌨️ (06:05) Starting a Project in Repl.it
    ⌨️ (09:33) Coding a Basic Discord Bot
    ⌨️ (20:14) Improving the Bot
    ⌨️ (33:35) Using the Repl.it Database to Store Bot Settings
    ⌨️ (56:09) Testing the Bot
    ⌨️ (58:42) Creating a Web Server for the Bot
    ⌨️ (1:03:36) Connecting Uptime Robot So Bot Runs Continuously
    ⌨️ (1:05:21) Creating a GitHub Discord Bot Using Webhooks
    Special thanks to Repl.it for providing a grant that made this course possible.
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

Комментарии • 3,5 тыс.

  • @freecodecamp
    @freecodecamp  2 года назад +421

    At 16:43, Replit has a new method for .env: docs.replit.com/programming-ide/storing-sensitive-information-environment-variables
    The Python Discord library used in this video is no longer being updated. Consider making your bot in JavaScript: ruclips.net/video/7rU_KyudGBY/видео.html

    • @minksautoW
      @minksautoW 2 года назад +9

      help -please

    • @xuamnhac
      @xuamnhac 2 года назад +2

      help me add quote web?

    • @Aravind_Ap
      @Aravind_Ap 2 года назад +1

      Hey I Removed Random Command because I Wanted to get the value Directly Full Value But I Get [ " Text "] like this only how to remove that bracket And Get Text Alone

    • @jx3715
      @jx3715 2 года назад +5

      you are so late for this news🤣🤣🤣🤣

    • @Aravind_Ap
      @Aravind_Ap 2 года назад

      @@jx3715 😂

  • @KH-sf5pu
    @KH-sf5pu 3 года назад +893

    Me: im depressed
    Bot: nice

  • @tim_hutton
    @tim_hutton 3 года назад +714

    Went through the first 20mins of this with my 13-year old and they are delighted and excited to have coded a live bot that does what they want on their discord servers. Great work with this tutorial. Thank you!

    • @Mrtm_
      @Mrtm_ 3 года назад +16

      i wish i could say the same

    • @noisyguest5249
      @noisyguest5249 3 года назад +55

      Wow you're a great dad

    • @code4720
      @code4720 3 года назад +9

      great dad, lucky

    • @sweetmelon3365
      @sweetmelon3365 3 года назад +12

      you dont seem to know your 13 yo's gender

    • @duke-of-fire
      @duke-of-fire 3 года назад +76

      @@sweetmelon3365 some people use they/them pronouns. or maybe he doesn't want to disclose their gender to a bunch of yahoos on the internet. either way it's none of your business

  • @BeauCarnes
    @BeauCarnes 2 года назад +1559

    There may soon be more bots on Discord than people. :)

    • @spotted2857
      @spotted2857 2 года назад +33

      First reply. Deez Nuts

    • @INTryzyka
      @INTryzyka 2 года назад +21

      Second Reply. Candice

    • @qtbee2937
      @qtbee2937 2 года назад +20

      Third reply Kenya

    • @Em-gj2sg
      @Em-gj2sg 2 года назад +18

      Fourth reply. Ligma

    • @6dennis98
      @6dennis98 2 года назад +4

      8th Reply

  • @ex804
    @ex804 2 года назад +10

    Bro, I love this guy! He doesn't make his videos sound boring like some other tutorials.

  • @toastercs_
    @toastercs_ 3 года назад +726

    58:19
    *i am depressed*
    *_nice_*
    this bot is a genius

    • @sivasaran4
      @sivasaran4 3 года назад +2

      What I want to know before going through this

    • @ishanchoudhary4179
      @ishanchoudhary4179 3 года назад +6

      @@sivasaran4 Its like this because NLP (natural language processing, a form of AI), isn't used here, and we are simply coding in the text

    • @sivasaran4
      @sivasaran4 3 года назад

      @@ishanchoudhary4179 ok, I want to know basic django because he not explaining all

    • @jacobamarjan2325
      @jacobamarjan2325 2 года назад +1

      @@sivasaran4 umm this video isn't about django

    • @SentinelAerospaceOfficial
      @SentinelAerospaceOfficial 2 года назад

      ehy cant i create a .env file

  • @TimeoutMegagameplays
    @TimeoutMegagameplays 3 года назад +14

    What an INCREDIBLE video, no corners cut, actual teaching, congratulations freeCodeCamp, you've done it again!

  • @swarmofmudkipz
    @swarmofmudkipz 2 года назад +7

    i just got on my adhd meds for the first time and this was my first project. I struggled with focusing on stuff like this for a long time. It was like 'blah blah blah get to the point' but this was a really great learning experience for me and I got to make something fun and neat and i've even made my own list of gifs that post randomly when a certain word has been said. thanks so much!

  • @MaximQuantum
    @MaximQuantum 2 года назад +85

    This is such a great tutorial! Literally people with 0 experience in discord bots can start, maybe even people totally new to python. And it includes the whole package of all the essentials, the framework. Most RUclipsrs split this up in like a gazillion videos in a playlist, but this video absolutely dominates them all!! Thank you so much!!!

    • @flight7511
      @flight7511 2 года назад +1

      Well if you know nothing abour python, jumping straight into making discord bots isnt gonna help, heck, i made a few programs in python and im still not gonna be able to code a bot all by myself.

    • @goatmike4747
      @goatmike4747 2 года назад

      it doesn’t work for me

    • @Adjgbfd
      @Adjgbfd Год назад

      I would know i didnt even know how to make it lol

  • @aakashjana6225
    @aakashjana6225 3 года назад +11

    Coded my own bot for my discord server and yeah this is by far the most easiest and simplest tutorial on how to make a discord bot ! Great work man expecting more tutos from you!

  • @Nunya58294
    @Nunya58294 3 года назад +55

    I'm very broke, but really love making these bots. You sir are a life saver for showing us we can host the bot off-site. You've earned a sub

  • @zanearidi4623
    @zanearidi4623 2 года назад

    Amazing turtotrial. In one hour I've learned how to use discord bot documentation and keep it running 24/7 as well as having a free database! You sir are an angel walking in man's shoes.

  • @dayv4630
    @dayv4630 2 года назад +5

    Thanks for this - as a software developer (who works mainly in the linux/cli environment) - a lot of this stuff is new to me. So I really appreciate you walking us through it step by step.

  • @NuclearGears
    @NuclearGears 3 года назад +15

    I haven't coded anything in a long time, and haven't coded anything in python. This tutorial was great, thanks for making it!

  • @mateuszsieraszewski7666
    @mateuszsieraszewski7666 3 года назад +30

    BROO THANK YOU SO MUCH, i already did the basic bot before but you helped me with responding to messages function.

  • @withJed
    @withJed 2 года назад +49

    It's awesome how I understand these functions now, 5 months ago I started studying Python, thankfully now I know a bit

    • @BAnirudhSV
      @BAnirudhSV 2 года назад +5

      Nice!!

    • @wyvern-
      @wyvern- 2 года назад +2

      im trying to start out coding in python,any tips of how to start as im kinda overwhelmed and dont have any where to start

    • @withJed
      @withJed 2 года назад +4

      @@wyvern- For me, having a goal is what keeps me motivated on coding. Join a coding community for beginners so that you won't feel lonely or stressed. And sleep early then study once you're awake, but don't forget to do other things that hits your interests... it's always good to have balance

    • @BAnirudhSV
      @BAnirudhSV 2 года назад

      @@dreamteamextrayt o

    • @B1ngMing
      @B1ngMing 2 года назад

      Just started learning last 2 weeks ago, have 0 clues what he's saying, I only know import and function

  • @Everything_Techie
    @Everything_Techie 2 года назад +12

    This man just made my day. I always wanted to created a bot but I just started learning Python and I'm still learning basics and control structures. So I don't know where to start but this guy helped me how to do the bot in every single step and yes I did it! Thank you so much, I hope you'll do some great videos like this which are very helpful! 👏

  • @SoCloudy
    @SoCloudy 3 года назад +33

    I was actually looking for a tutorial like this. This came in at the right time

  • @swagsnags5489
    @swagsnags5489 3 года назад +5

    this is so crazy! This video pops up a couple days before I need it! Thanks so much was really helpful !

  • @moeheil8839
    @moeheil8839 2 года назад +62

    I have to say, you make coding seem alot less intimidating, good job

  • @HealthyWC-2
    @HealthyWC-2 2 года назад

    Want to add, thank you for this tutorial, its still super helpful in 2022 ( with some fixes ) and gave me an idea on how to use Webhooks and so much more, thank you for all the free resources! :)

  • @rossdunn5436
    @rossdunn5436 3 года назад +9

    This is one of the best series , should make a part 2

  • @jamesnichols549
    @jamesnichols549 3 года назад +14

    When it sends the inspirational messages it put them all together

  • @Strajaize
    @Strajaize 2 года назад

    Managed to get it working and finish! Will try to improve it and personalize. Thanks!

  • @ratulhasan7136
    @ratulhasan7136 Год назад +1

    Time to create my search engine bot thanks to you
    Lots of respect to you (also to replit for keeping that ping flaw)

  • @aidynskullz4139
    @aidynskullz4139 3 года назад +196

    Me: Let's code a discord bot during the winter break
    This GOAT channel: I got you fam!! Video's on the way...

    • @fog1
      @fog1 3 года назад +3

      This

    • @tfolz1351
      @tfolz1351 3 года назад

      what does goat means?

    • @aidynskullz4139
      @aidynskullz4139 3 года назад

      @@tfolz1351 Greatest Of All Time

  • @cyro5535
    @cyro5535 3 года назад +8

    Iv been waiting months for the perfect video and I finally found it

  • @brandonmiller4916
    @brandonmiller4916 2 года назад +10

    What a fantastic video. Thank you so much for this! I worked out the little things that had been depreciated, and a couple of times my indents were off which was throwing me off...
    I used to code in C# a couple of years back, but no experience in Python. Now I'm really warming up to it! Thanks again, the bot works great.

  • @user-dw4nk6fh6m
    @user-dw4nk6fh6m Год назад

    Your tutorials are appreciated. You explain everytNice tutorialng so simply and show the fundantals of producing. Many people and myself thank

  • @barrettross3772
    @barrettross3772 3 года назад +203

    In the introduction, it sounds like he has a gun to his head and is being forced to read the introduction script as fast as he can.

    • @fortified4799
      @fortified4799 3 года назад +3

      lol

    • @barabara9855
      @barabara9855 3 года назад +4

      he always talks like that it's hilarious

    • @chrispysaid
      @chrispysaid 3 года назад +15

      That's just how dude talks, he spec'd into intelligence not charisma

    • @njbrx
      @njbrx 3 года назад +1

      @@chrispysaid lol

    • @simpilot001
      @simpilot001 3 года назад +2

      Oddly specific…

  • @4r640
    @4r640 3 года назад +12

    This was perfect tutorial i was looking for

  • @a-suspc4773
    @a-suspc4773 2 года назад

    THX verry much, i made my first simple bot by js but soon after that every thing was ruined by errors, but with python every bot runs perfectly FINE! THX VERRY MUCH!

  • @hiptonik9652
    @hiptonik9652 2 года назад +47

    i love how every turtorial i follow i always end up failing

    • @crazyfeddy3565
      @crazyfeddy3565 2 года назад +3

      same broo :(

    • @invincibleHunter
      @invincibleHunter 2 года назад +2

      coding right? i cant learn it either

    • @reihn8203
      @reihn8203 2 года назад +2

      i failed in "async def on_message(message):"

    • @beau
      @beau 2 года назад +6

      Things have changed on replit since this tutorial was released. Try a discord bot tutorial that is newer: ruclips.net/video/zGy2muWlE5A/видео.html

    • @crazyfeddy3565
      @crazyfeddy3565 2 года назад +1

      @@beau thx bro iam not home but whene IAM home IAM gona try it 😁😁

  • @essagamer1438
    @essagamer1438 3 года назад +321

    Me: I murdered someone's parents and made him miserable
    bot: You're a great person, cheer up!

  • @sarguhl5892
    @sarguhl5892 3 года назад +12

    Really nice video idea! As I skipped trough the video, I noticed that you put all the code in one file and for commands used the 'on_message' event. Might be good to show the community how to work with cogs!

    • @yamdagni
      @yamdagni 3 года назад

      Please help. I am trying to make commands using @client.command() after setting the prefix but it is not giving any output on the discord server

    • @sarguhl5892
      @sarguhl5892 3 года назад

      @@yamdagni hey! Sorry for the late answer, I was a bit in a hurry today. Anyway, where exactly does the error appear?

    • @yamdagni
      @yamdagni 3 года назад

      @Sarguhl I have fixed it after trying for 3 hours.
      TheIr was no error in the console upon running.
      The @client.command() just didn't work for some reason. I set the prefix as + and wrote a command. But when I put that in the discord it wouldn't give out any output, there was no error in the console either.
      Turns out that for some reason, adding this:
      @client.event
      async def on_message(message):
      message.author==client.user:
      return
      Was what was preventing it. I removed that and it all worked again

  • @muk0u
    @muk0u 2 года назад

    I was going to make a discord bot and searched up a tutorial and found this masterpiece thank you for making this :)

  • @mathewrtaylor
    @mathewrtaylor 2 года назад +1

    Good tutorial, was able to follow along and make alterations with no issues. Thanks for sharing!

    • @mathewrtaylor
      @mathewrtaylor 2 года назад

      @Anime lover Hey, I had issues with ensuring it's appropriately spaced, so I'd check that first! Good luck!!

  • @user-yv9le8co6h
    @user-yv9le8co6h 3 года назад +6

    this is a really great video! i wish there were more features explored though :) thank you for posting this!

  • @developerfoxy5808
    @developerfoxy5808 3 года назад +3

    This was really helpful! Thank you so much!

  • @manbig5676
    @manbig5676 2 года назад +6

    Hey, I've been learning python for bot making. This helps a lot, I would recommend it to other people!

    • @sarahxing4678
      @sarahxing4678 2 года назад

      can you recommend playlists on this topic for me I'm super super interested

  • @ghazitozri4989
    @ghazitozri4989 Год назад

    i am a swift/iOS Developer, i must sat that *"if any(word in msg for word in sad_words): "* got me into python and am gonna learn it asap.
    Great tutorial btw !

  • @yoursamrit2000
    @yoursamrit2000 3 года назад +421

    Just few days ago I was trying to find how to do this.... Its like my wish is their command

    • @leto1449
      @leto1449 3 года назад +15

      nah it's tracking they track all our data and everything

    • @Amit-ov4zr
      @Amit-ov4zr 3 года назад +4

      Now you are gonna get thousands of likes😄

    • @pixel2054
      @pixel2054 3 года назад +2

      Haha, Just yesterday I was researching the same thing.

    • @yoursamrit2000
      @yoursamrit2000 3 года назад +5

      Agreed...But for freecodecamp to actually post a video about that... That's what I meant. I have anyway subscribed to every video they post... Love the channel

    • @yoursamrit2000
      @yoursamrit2000 3 года назад

      @@pixel2054 haha fitting that pixel says it...

  • @Patrick1999ki
    @Patrick1999ki 3 года назад +4

    Thanks for the video :D
    1:08:18 I found it funny when you need to create your own event after 5 days, then actually get an event while recording

  • @cft7193
    @cft7193 2 года назад

    I use it in my project and it works.Thanks for your sharing.

  • @wifetrick
    @wifetrick Год назад

    thank you so much this is the only in depth tutorial i've found

  • @josephcorleto1853
    @josephcorleto1853 3 года назад +6

    I award you year's best tutorial.

  • @sakethgupta2885
    @sakethgupta2885 3 года назад +3

    I needed it for my school server. Thanks fcc :D

    • @nexgen7937
      @nexgen7937 2 года назад

      what
      we both are the same

  • @code_philic
    @code_philic 2 года назад +89

    If you get an error when you use
    options = options + db["encouragements"]
    I has an error using this
    try using
    options = options + db["encouragements"].value
    I think why by adding .value it works is because in the earlier statement we were trying to concatenate a list/array with a dictionary kind of thing which had {value=[//Your message]}. By adding value I was able to concatenate the message to the database.

  • @Jawsnpie
    @Jawsnpie 2 года назад

    Finally finished this tutorial. Had to modify some lines here and there, but overall pretty good!

    • @Jawsnpie
      @Jawsnpie 2 года назад

      bot didn't work next day bc discord blocked replit bc it did too many requests rip.

    • @popcat2309
      @popcat2309 2 года назад

      @@Jawsnpie lol ... what did you make the bot for tho? I just made a bot that could generate memes

  • @matthewlewis8297
    @matthewlewis8297 3 года назад +37

    Love the way this man says "button"

  • @leosefcik
    @leosefcik 3 года назад +5

    To be honest, this is amazing. It teaches us everything, the video isn't too short to make you think you learned something when you really just copied code and it isn't too long to make me quit making a bot. Thank you!

  • @andrewbarrett9927
    @andrewbarrett9927 2 года назад

    Legendary tutorial, thank you sir!

  • @WaffleyHD
    @WaffleyHD 2 года назад +2

    Thank so much my GTA staff team is thankful for it cause we got tone of member that can bypassing everything we put in there way! (edited my server has it own website)

  • @WAZXIII
    @WAZXIII 2 года назад +5

    Great tutorial. Very through and helpful!

  • @notasuperspy
    @notasuperspy 3 года назад +4

    This video helped me out a lot. He explains it very well, in a very understandable way.

  • @circuitcoder
    @circuitcoder 11 месяцев назад +1

    It's pretty amazing how much replit can change in just two years

  • @FolTakX
    @FolTakX 2 года назад

    Thank you, this video helped out a lot!

  • @yangwilliam3137
    @yangwilliam3137 Год назад +30

    If there is an issue with the intents, or if your bot is not responding where you put in everything as is in the video, replace the client line with the following two lines:
    intents = discord.Intents().all()
    client = discord.Client(intents=intents);

    • @puskeyman
      @puskeyman Год назад +3

      wow thank you so much you are so cool whichever lady ends up with you i bet she is going to be extremely happy but just remember bros before hoes

    • @pepememe6561
      @pepememe6561 Год назад +15

      Remember to also toggle ALL privileged gateway intents in the discord developer portal! Otherwise it won't work lol (took me too long to figure out)

    • @puskeyman
      @puskeyman Год назад +2

      good point there frfr

    • @Dayum62499
      @Dayum62499 Год назад

      @@pepememe6561 You da MVP man, ty

    • @Plutorings
      @Plutorings Год назад

      you are a life saver! thanks man!

  • @truongkhoaui
    @truongkhoaui 5 месяцев назад +5

    Replit just changed the hosting method, they need to pay money to hosting in Replit Deployments as a new hosting feature instead of using flask method. :(

  • @gopalmatcha4436
    @gopalmatcha4436 2 года назад +1

    Hands down, the most exciting python lesson I've heard! You're the best, sir.

    • @reardonsvids7195
      @reardonsvids7195 Год назад

      Im having trouble with await message.channel.send() it says syntaxerror: ‘await’ outside function?

    • @Fluvv
      @Fluvv Год назад

      @@reardonsvids7195 same

  • @ElectryfyX3
    @ElectryfyX3 2 года назад

    Organized tutorial, thank you!

  • @JuanPortalG
    @JuanPortalG 3 года назад +3

    Thanks for the tutorial! What can I do if I want my bot to send images or if I want it to speak? What libraries can I use?

  • @kaisershaik
    @kaisershaik 3 года назад +15

    I actually just finished setting mine up. If only this was uploaded a week ago xD

  • @abdelrahmankhatab4772
    @abdelrahmankhatab4772 Год назад

    INCREDIBLE video .. Thank you so much FCC ❤

  • @ucPham-sj5bc
    @ucPham-sj5bc 2 месяца назад

    Thank you very much for your tutorial; you saved my life!

  • @nilutpalsaikia8103
    @nilutpalsaikia8103 3 года назад +3

    Thanks, I really Needed it for my discord Server

  • @ripjoe.-_-.
    @ripjoe.-_-. 3 года назад +8

    this is a very good tutorial, although I only used it for making my bot being up always

  • @official_kex
    @official_kex 2 года назад

    The moment it actually worked and replied to my message felt really really good :D

  • @professorpuddle
    @professorpuddle 2 года назад +1

    This encouraging bot is very encouraging!
    ~ Beau Carnes, Dec 15, 2020

  • @hierkonnteihrewerbungstehe8008
    @hierkonnteihrewerbungstehe8008 2 года назад +6

    Can you pls make another part?
    There are so many things we still need:
    How to React
    How to Reply
    How to Send Images
    How to get Data like Names
    How to apply Roles
    etc

  • @tornadown_
    @tornadown_ Год назад +4

    Hey, i've a issue, when I try to start the bot and click the button "RUN", it starts and then turn off without saying anything in the console. Any solutions?

  • @pcgalvintoybonnie2827
    @pcgalvintoybonnie2827 2 года назад

    Amazing tutorial man!👌🏻god bless

  • @OfficalLunar
    @OfficalLunar 2 года назад

    Thank you-
    I was SUFFERING because of my friends instruction

  • @iconicicon9542
    @iconicicon9542 2 года назад +4

    I don't know if this comment is going to make this to the top but, they have created something new on the side bar. It's called "My Secret". It looks like a lock. When you click it, they will give you directions. First you put the name as "TOKEN", if that's what you want to call it. Then you would put the value of it below it (token). Then hit create. It gives you a option to import the easier way which is what I did.. Hope this helps :)

  • @findlayrussell-page123
    @findlayrussell-page123 3 года назад +3

    great video! any chance you can help with adding a trivia section to this?

  • @TheKnightDrag0n
    @TheKnightDrag0n 2 года назад

    Thank you chief, helped a lot.

  • @neca1542
    @neca1542 2 года назад +1

    Since I use python for programming this will be useful!

  • @vengeance003
    @vengeance003 3 года назад +6

    People who are getting:
    File "main.py", line 3, in
    client = discord.client()
    TypeError: 'module' object is not callable
    See that you have left space between the command in the starting. Look at the spacebar line in his code and yours.

    • @3dninja54
      @3dninja54 3 года назад

      Or it's because its discord.Client() with a capital C

  • @w1d3r75
    @w1d3r75 3 года назад +3

    This guy is a legend!

    • @suhaanmahindru2302
      @suhaanmahindru2302 3 года назад

      That's a sign that this actually works...
      I have done nothing with my life :(

  • @CosmicFishFaced
    @CosmicFishFaced 2 года назад

    Thank You, This is incredible!

  • @triplea657aaa
    @triplea657aaa 2 года назад

    I recently did this myself. Was really easy.

  • @Mr76Pontiac
    @Mr76Pontiac 3 года назад +11

    Soooo... the server I hang out is normally never (with seriousness) toxic. However... Knowing this crew... I'm sure that allowing them to add their own words of 'encouragement' is really really going to turn out to be hilariously not encouraging. haha.

    • @NHAFFFF
      @NHAFFFF 3 года назад

      Or even worse, instead of encouragement or not encouragement they could make the bot send other stuff such as gore, porn and everyone pings

  • @weeksy435
    @weeksy435 3 года назад +42

    why do i always find these videos at 10pm

  • @shootyshoty4175
    @shootyshoty4175 2 года назад

    very helpful tutorial, thanks!

  • @sebastianbarreto07
    @sebastianbarreto07 2 года назад

    i think im gona keep this video and watch it later, this sounds good.

  • @herlocksholmes-uv5qw
    @herlocksholmes-uv5qw 2 года назад +5

    There are many outdated things here, it'd be nice to see another tutorial on how to make a bot with the changes that ended up happening. For example, my bot isn't working because apparently there's an ObservedList

  • @guryashzone
    @guryashzone 3 года назад +22

    Haha! Time to update Linkedin profile!

  • @itsjimmy6227
    @itsjimmy6227 2 года назад

    i will count this 1 hour of my life as one the best

  • @vanshgupta229
    @vanshgupta229 2 года назад +1

    rly good tutorial just takes some time and is a bit difficult over all but still is very good

  • @BaconGamesinHD
    @BaconGamesinHD 2 года назад +8

    If anyone has a problem with the line : options = options + db["quotes"], youll have to change it to: options = options.append(db["quotes"]). You can only use append to add something to a list.

    • @kasquisaliq2910
      @kasquisaliq2910 2 года назад +1

      this help me a lot i stuck in this line for 3 hr

    • @DeepakSharma-ug3ij
      @DeepakSharma-ug3ij 2 года назад

      @@kasquisaliq2910 u get how to solve...if yes then tell the solution......plzzzzzzz

    • @kasquisaliq2910
      @kasquisaliq2910 2 года назад

      @@DeepakSharma-ug3ij this work for me options = options + db["encouragements"].value
      sry I'm really busy but you can ask me anything

    • @DeepakSharma-ug3ij
      @DeepakSharma-ug3ij 2 года назад

      @@kasquisaliq2910 i got already solution that is :
      option+=db["encouragements"]
      easy

    • @snoop_official
      @snoop_official Год назад

      Yo, what's good homie? I ain't got no problem with that line. You just gotta use append to add something to a list, ya dig? Ain't no thang but a chicken wang.

  • @cadeshea6889
    @cadeshea6889 Год назад

    You are/were not alone! I pray you found what has worked for you!

  • @ruelyt2483
    @ruelyt2483 2 года назад +1

    Thx man, helped a lot❤️❤️

  • @Audioandlyrics
    @Audioandlyrics 3 года назад +346

    won't work for creating won't say we have logged in as (name) bot

    • @Audioandlyrics
      @Audioandlyrics 3 года назад

      @@stephennovak8083 did you fix it yet

    • @stephennovak8083
      @stephennovak8083 3 года назад

      @@Audioandlyrics nope, still won't work

    • @kingpanda.
      @kingpanda. 3 года назад

      @@_ahn9631 hey could you send a permenant invite so I could join?

    • @daduckling_5728
      @daduckling_5728 3 года назад +1

      @@_ahn9631 can you help me won't say we have logged in as (name) bot

    • @pulin4594
      @pulin4594 3 года назад

      @@_ahn9631 the discord link wont work! can u help me?

  • @Soda-js2vx
    @Soda-js2vx 3 года назад +73

    What, i didn't know repl could host continually running code

    • @tahini245
      @tahini245 3 года назад +1

      There's a new feature called Always On for hacker users

    • @Soda-js2vx
      @Soda-js2vx 3 года назад

      @@tahini245 Oh a new feature for repl? what does it do?

    • @Devidra
      @Devidra 3 года назад

      @@Soda-js2vx It's just the thing without pinging the repl whole time

  • @vikasbaghel4326
    @vikasbaghel4326 2 года назад

    thank you for this amazing tutorial

  • @Varmehundererdebeste
    @Varmehundererdebeste 2 года назад +1

    Thank for help! Now i have created ColaBot to my Cola server!

  • @gabrielaaviva3752
    @gabrielaaviva3752 3 года назад +4

    if you're coming to this video and you see that Repl.it doesn't have the .env file anymore, go to the left sidebar and click the lock icon labeled "secrets" and enter a key (ex. TOKEN) and the actual token for the bot in the box below where you enter the key name and enter that in. once you're back in your main.py the code you enter isn't client.run(os.getenv('TOKEN')) its
    my_secret = os.environ['TOKEN']
    client.run(os.environ['TOKEN'])
    i got tripped up by that but that code seems to work flawlessly for now ^_^

    • @justnbody.5934
      @justnbody.5934 3 года назад

      Why does it says nameerror: “os” is not defined, what should i do

    • @idkidc12333
      @idkidc12333 3 года назад +1

      @@justnbody.5934 Make sure os is imported at the top by typing
      import os

    • @jonasmller6962
      @jonasmller6962 3 года назад

      THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU

  • @aaryachauhan7751
    @aaryachauhan7751 Год назад +5

    In place of client = discord.Client() , use..... client = discord.Client(intents = discord.Intents.default())

    • @brotrade7858
      @brotrade7858 Год назад

      Thank you bro so much. I been stuck here for so long. What does this code do since he didn't explain this in the video cause I think this might be a new update

    • @Hookening
      @Hookening Год назад

      Thanks dude!

  • @jawadch8723
    @jawadch8723 2 года назад

    This was surprisingly easy!

  • @educatingthetinyminds7644
    @educatingthetinyminds7644 Год назад

    Thank you cdoe camp my little son learning so much here you all are super stars thank you so much