How to Host a Discord Bot 24/7 on Digital Ocean ($100 in free credit)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

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

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

    🐳 Get $100 of Digital Ocean credit
    wornoffkeys.com/digital-ocean
    🧠 Learn website dashboards + bot monetization:
    levelupyourbot.com

    • @ThammiiYamauti
      @ThammiiYamauti 2 ปีที่แล้ว

      does the 100 credit is still valid?

    • @_LunarLoom
      @_LunarLoom 2 ปีที่แล้ว

      does the 100 credit is still valid?

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

    W video! Been confused with VPS' in the past but this was really easy to follow, pm2 seems cool too

  • @adityakokate3096
    @adityakokate3096 3 ปีที่แล้ว +5

    First choice for Everything Related to Discord Bots:
    Worn Off Keys!

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

    I was about to look up how to do it myself, but then this came out

  •  3 ปีที่แล้ว +1

    Thank you so much for this detailed tutorial! You explained it perfectly :)

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

    This got my bot running on the cloud. TYSM

  • @abdulrehman-kk3jo
    @abdulrehman-kk3jo 4 ปีที่แล้ว +4

    You deserve more subs dude. Keep up the good work! Instantly clicked on the notif ^_^

  • @GamePlayer1695
    @GamePlayer1695 3 ปีที่แล้ว

    Woo I finally figured out how to move my bot to a VPS! Thank you, very helpful video :)

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

    is there a way to do this with python instead of js?

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

    Can you make a video on how to make a antispam bot which warns us if we type more than *x* messages per *y* seconds. You can also include anti bad words system in that video!!

    • @warriorsgardenmma
      @warriorsgardenmma 3 ปีที่แล้ว

      Discord currently has a feature to limit the frequency of messages in a given channel, I believe. If you're familiar with javascript I'd assume it'd be a matter of saving the message as a string and checking to see if it contains any buzzwords from a list of taboo words.Someone can correct me if I'm wrong in that assumption

  • @MrIronManMC
    @MrIronManMC 2 ปีที่แล้ว

    Thank you for this useful tutorial keep up!

  • @clooh
    @clooh 3 ปีที่แล้ว +5

    I get this as an error "bash: line 1: html: No such file or directory
    bash: line 2: syntax error near unexpected token `

    • @elementsgaming2411
      @elementsgaming2411 3 ปีที่แล้ว

      look up "How to install node.js on [service you chose]". I for instance looked up "how to install node on ubuntu" because my server uses Ubuntu. In the tutorial I think he uses centos

    • @clooh
      @clooh 3 ปีที่แล้ว

      @@elementsgaming2411 Figured out the problem, there's an extra space when you run the install curl in the terminal

    • @wakicial156
      @wakicial156 3 ปีที่แล้ว

      @@clooh i still don't get it can you paste me what to type i have problems rn pls

    • @clooh
      @clooh 3 ปีที่แล้ว

      WakiCial fixed, you just have to type it out

  • @kiwiwastaken
    @kiwiwastaken 4 ปีที่แล้ว

    Thanks for this, was confused

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

    i cant install nodejs

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

    After how long will the vps end if I did not restart and did exactly what you did?

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

    Any reason why are u using Node.js v12 and not Node.js v15?

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

    How can I delete all the dependencies and start over from scratch? I ran into an issue when something online told me to run apt remove nodejs

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

    how can I make pm2 use bun index.js instead of node index.js?

  • @NotInsertIGN
    @NotInsertIGN 3 ปีที่แล้ว

    Does this only work with Javascript? I have a Java discord bot that I want to host with digital ocean, but I am unsure if Java works with DigitalOcean. Thanks! @Worn Off Keys

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

    all of the operating system are linux? or there is a windows server too?

    • @WornOffKeys
      @WornOffKeys  4 ปีที่แล้ว

      Not sure if Digital Ocean offers Windows machine, but most hosting companies use Linux because it's cheaper and better performance for this type of thing. Most of the commands I show in this video are all you will need to know for basic bot hosting

  • @joaovictormilhomem4590
    @joaovictormilhomem4590 2 ปีที่แล้ว

    Thank u so much

  • @sebastiannietor9724
    @sebastiannietor9724 3 ปีที่แล้ว

    How can I know the amount of CPU that my script consumes? To calculate the costs when uploading it to a server

  • @majorsin5118
    @majorsin5118 3 ปีที่แล้ว

    Cant you just use the console inside digitalocean to keep it running?

  • @yoavyoutube
    @yoavyoutube 9 หลายเดือนก่อน

    How does this work with a .env file?

  • @Luckyproog
    @Luckyproog 4 ปีที่แล้ว

    hey, you got an idea how to get of a user on the guild over his nickname on the guild the id of this user?

    • @yeti3838
      @yeti3838 4 ปีที่แล้ว

      I don’t really understand, but you could try out these that might suite your needs.
      message.author.username - gets the user name with the tag
      message.author.tag - gets the username with the tag
      message.author.id - gets the user is
      Keep in mind that those examples above are for the author of the message, you will need to sort them out yourself if you use a different method.

  • @arnavmishra9500
    @arnavmishra9500 4 ปีที่แล้ว

    50th viewer i am in ur server a booster

    • @WornOffKeys
      @WornOffKeys  4 ปีที่แล้ว

      Thank you for boosting the server!

  • @haxhub
    @haxhub 3 ปีที่แล้ว

    does it restart itself after some time like on heroku. ? It restarts after 24 hours

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

      The bot shouldn't restart on a timer using Digital Ocean

    • @haxhub
      @haxhub 3 ปีที่แล้ว

      @@WornOffKeys tnx

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

    Can I get personal help pls I am a 14 yr old game dev I don't have money pls help me

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

    Bro can make tweet commands?

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

      Hey, can you provide more information? Perhaps some examples

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

      @@WornOffKeys Tweet command is an example like the one in dank memer bot whose command: "Pls tweet test" if we take an example! Tweet test, it will send via twiiter images, like fake twitter. And in images with tweet commands, our name on discord will be written in the command tweet image.

  • @Ren-nf1xt
    @Ren-nf1xt 3 ปีที่แล้ว

    How do I install FFmpeg to the server? I'm getting errors

    • @vayne8663
      @vayne8663 2 ปีที่แล้ว

      sudo apt-get install ffmpeg

  • @tix6266
    @tix6266 4 ปีที่แล้ว

    Can you make a voicechannel/textchannel delete command?

    • @WornOffKeys
      @WornOffKeys  3 ปีที่แล้ว

      Hey, I go over the concept of deleting channels in this video th-cam.com/video/_nAg4efu0hs/w-d-xo.html and this video th-cam.com/video/MTdkz6TLGOI/w-d-xo.html

    • @tix6266
      @tix6266 3 ปีที่แล้ว

      @@WornOffKeys Thanks :)

  • @saqibchy4254
    @saqibchy4254 3 ปีที่แล้ว

    asks me for cc / and or paypal

    • @WornOffKeys
      @WornOffKeys  3 ปีที่แล้ว

      Most hosting companies will to ensure they have some type of payment method on file for when the free credits end

    • @saqibchy4254
      @saqibchy4254 3 ปีที่แล้ว

      does my paypal need to have a card linked or not?

    • @saqibchy4254
      @saqibchy4254 3 ปีที่แล้ว

      it also asks me to pay $5 or smthn

    • @zoiskiee28
      @zoiskiee28 3 ปีที่แล้ว

      @@saqibchy4254 Because they charge for the services after your trial dummy.

  • @levi9017
    @levi9017 4 ปีที่แล้ว

    Can you show us how to host the bot for free 24/7 no credit card required

    • @WornOffKeys
      @WornOffKeys  4 ปีที่แล้ว

      Hey, I'm not aware of a service that offers that. Everything either requires money or a card to be on file

    • @naclan8105
      @naclan8105 3 ปีที่แล้ว

      Heroku

    • @nebzla
      @nebzla 3 ปีที่แล้ว

      @@naclan8105 You still dont have enough hours to host it 24/7

  • @kamalCode
    @kamalCode 4 ปีที่แล้ว

    How to host MERN PROJECTS ON AWS CLOUD HOSTING SETUP FOR NEW DEVELOPERS

    • @WornOffKeys
      @WornOffKeys  4 ปีที่แล้ว

      Hey, I typically use a combination of MongoDB Atlas and AWS for my MERN projects. Within AWS I use Elastic Beanstalk for an easy-to-use auto scaling express server host

  • @AntiAnything
    @AntiAnything 3 ปีที่แล้ว

    ok so my bot works but whenever i change something in the code it doesnt update to my bot when i start with the bitvise consol but it does work when i start with the vs code terminal

    • @WornOffKeys
      @WornOffKeys  3 ปีที่แล้ว

      Hey, you'll need to upload the changed code and then restart your bot using "pm2 restart "

  • @antonioantognoni8816
    @antonioantognoni8816 3 ปีที่แล้ว

    this isn't free bruh

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

      Hey, it should give you $100 in credit when using the link in the description. What does it say when you are signing up?

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

      @@WornOffKeys I sing up and I must add PayPal method to pay some monry