Making Tetris Using Discord's Bot API

Поділитися
Вставка
  • Опубліковано 29 сер 2024
  • Coding a Tetris game that can be played in any Discord server...
    In this video, I use Discord's Bot API to code Tetris as a Discord bot. Shoutout to PolyMars for showing me you can make a game using Discord but I wanted to take it to the next level with this one...
    👨‍💻 Here's the full code: github.com/wil...
    ⭐️ New viewers:
    I cover all things coding, such as app development, web development, artificial intelligence (AI), machine learning, game development, and more! If you're interested in any of these things make sure you hit that subscribe button :)).
    🎵 Credit:
    -------------------------------------------------------------------------
    Music: Evan King - Wood
    / @contextsensitive
    contextsensiti...
    -------------------------------------------------------------------------

КОМЕНТАРІ • 204

  • @Will-404
    @Will-404  2 роки тому +32

    Btw shoutout to PolyMars for the vid inspiration, and sorry I haven't uploaded in ages 😬😬. Gonna be uploading a lot more from here on out tho 🤞

    • @thelowspecpc9582
      @thelowspecpc9582 2 роки тому +1

      Mannn, I feel bad for you. You only have 212 subscribers even tho you make better videos than higher subscribed channels. I made a youtube shorts spam bot on my alt account using selenium Web Automation and got 3.8k subs before it got shut downed by youtube. I might do this again with a slight approach like giving myself 2k subs through the same method then putting actual content like meme vids. I am now working on Automated meme vid creator or something like that. I hope your channel grow. Peace ✌.

    • @letruxux
      @letruxux Рік тому

      kewl

    • @Kidplayzgamez
      @Kidplayzgamez Місяць тому

      Heyy

  • @jackuk2700
    @jackuk2700 2 роки тому +47

    I was so surprised when I watched the video, looked down and saw how many views it has. You deserve so much more. Such a good video concept as well as amazing execution.

    • @Will-404
      @Will-404  2 роки тому +4

      Damn I really appreciate that dude thank you

    • @Monkeymario.
      @Monkeymario. Місяць тому +1

      um

  • @rotnchocolate
    @rotnchocolate Місяць тому +7

    respecting you for eating the chocolate because of a discord limitation

    • @Will-404
      @Will-404  Місяць тому +1

      hard regrets 🥴

  • @izaanhafid
    @izaanhafid Місяць тому +2

    706 SUBS ONLY?! BRO THAT IS CRIMINALLY UNDERRATED. I THOUGHT THIS WOULD HAVE LIKE 200K

    • @Will-404
      @Will-404  Місяць тому

      Lmao I wish bro

    • @izaanhafid
      @izaanhafid Місяць тому

      @@Will-404 keep working at it and youre gonna succeed. you got the formula for success all you need is time. big fan

    • @Will-404
      @Will-404  Місяць тому

      thank you so much, means a lot fr

  • @star80doessdastuff
    @star80doessdastuff Місяць тому +1

    Why you ain't even over 2,000 subs this is lit 😭😭 wish you the best of luck in the future.. remember me when you get popular, no matter how long it takes.. it will happen eventually, you deserve it

    • @Will-404
      @Will-404  Місяць тому +1

      absolutely love comments like these, thank you so much 🙏🏼

  • @swem0ry
    @swem0ry 2 роки тому +14

    dude this is impressive asf, you deserve more views, this is some gold content. subscribing. also, I under that the realtime play is probably trashy, but, itd be real cool if you allowed us to invite the bot to our servers. it doesnt have to be perfect, it just has to work, right?
    ps: good on you for eating that chocolate, hope youre doing okay after that 😭

    • @Will-404
      @Will-404  2 роки тому +4

      you a legend for this comment, ty bro. I think it would be cool to host it somehow but I'm p sure it'll cost money and need more code added, and id rather put that into smth cooler I think.
      also yh I'm just about fine lmao

    • @LilacPicniz
      @LilacPicniz 10 місяців тому

      @@Will-404 well you can add it to replit and host using uptimerobot..

    • @RuskyDev
      @RuskyDev 2 місяці тому

      @@Will-404 I'll cover the hosting fees make it stable

    • @Monkeymario.
      @Monkeymario. Місяць тому +1

      how is this impressive

  • @le9038
    @le9038 Місяць тому +2

    This is quite a good video! Good on you!

    • @Will-404
      @Will-404  Місяць тому +1

      Thanks man 😁

  • @Monkeymario.
    @Monkeymario. Місяць тому +1

    5:32 YAY HE EAT CHOCOLATE

  • @Cate_isOk
    @Cate_isOk Рік тому +3

    5:31 😂😂😂 LOL SO FUNNY 😂😂😂

    • @Will-404
      @Will-404  Рік тому

      it was torture 😭😭

  • @Ohhmymy
    @Ohhmymy 2 роки тому +10

    Really nice video! Motivating me to code myself a game :)

    • @Will-404
      @Will-404  2 роки тому +1

      that's sick, you 100% should do you'll enjoy it. You have any ideas what you're gonna make?

  • @deepfakes4567
    @deepfakes4567 2 роки тому +5

    what i love is that he gives us the cdoe so we can make our own and obviously im too lazy to copy the entire code so im just gonna add thst bot

    • @Turtlegamer.
      @Turtlegamer. Місяць тому

      Its called opensource

    • @deepfakes4567
      @deepfakes4567 Місяць тому

      @@Turtlegamer. This is two years old why did you reply

  • @niggamanjr
    @niggamanjr 2 роки тому +4

    and this video is not viral why???

    • @Will-404
      @Will-404  2 роки тому +1

      lmaoo that's what I'm saying

    • @VnM-vm3wm
      @VnM-vm3wm 2 роки тому

      The UA-cam aglorithm

  • @onesadapple5220
    @onesadapple5220 2 роки тому +2

    Just found your channel and its great so im subbing

    • @Will-404
      @Will-404  2 роки тому +2

      damn I appreciate that dude thank you

  • @wolfrust0
    @wolfrust0 Місяць тому

    i smell a underated youtuber

  • @theyoungcoder
    @theyoungcoder Місяць тому

    Gold, you just earned a sub

    • @Will-404
      @Will-404  Місяць тому

      Thanks bro 🙏🏼

  • @muskhan
    @muskhan 2 роки тому +6

    Nice one Will. Is the bot available to add in servers?

    • @Will-404
      @Will-404  2 роки тому +2

      Tbh I decided it wasn't really worth hosting it just bc it sucks playing it in real time. If they ever up the rate limit (doubt) I'll prob host it tho. Also ty sir 🙏

    • @umbralstudios5957
      @umbralstudios5957 2 роки тому

      add it anyways

    • @UnknownBurgerr
      @UnknownBurgerr Рік тому

      @@Will-404 bro add it people want this bot

    • @Will-404
      @Will-404  Рік тому

      I'm p sure I can't since it'll get rate limited like mad :/

    • @ProSureString
      @ProSureString Місяць тому

      @@Will-404provide the source code so people can host it themselves!

  • @arctic_angel7408
    @arctic_angel7408 3 місяці тому +1

    this aint bad at all this is cool asf

    • @Will-404
      @Will-404  3 місяці тому +1

      I think if you played the game you might disagree lmao but thank you bro

  • @hust_man
    @hust_man Місяць тому

    great video!!

    • @Will-404
      @Will-404  Місяць тому

      Thank you man 🙏🏼

  • @matishere
    @matishere Місяць тому

    Bru I’ll eat the chocolate myself after seeing this

  • @Rubblage
    @Rubblage 2 роки тому +1

    Damn good video, do u have a discord server?

    • @Will-404
      @Will-404  2 роки тому +1

      thanks dude 🙏, I don't have one rn but hopefully in the future 👀

  • @memeow9848
    @memeow9848 2 роки тому +34

    How to I put it on my server?

    • @Luna5829
      @Luna5829 Місяць тому +13

      he put the code in the description

    • @4ntizero
      @4ntizero Місяць тому +6

      @@Luna5829not everyone knows how to make a discord bot. also this comment was a year ago 😭

    • @Luna5829
      @Luna5829 Місяць тому +15

      @@4ntizero nuh uh

    • @ventikoi
      @ventikoi Місяць тому +6

      ​@@4ntizero you really think he's got the money to not only release the bot but to keep the bot running on multiple servers for as long as it can?

    • @epicboy330
      @epicboy330 Місяць тому +4

      @ventikoi_ You do realize it doesn’t cost money to run a Discord bot right?
      It just costs time, which is why most bots have a paid tier.

  • @crisfreire9404
    @crisfreire9404 Місяць тому

    *can he run doom tho?* (btw this is perfection. i really thought that i was trippin)

  • @Monkeymario.
    @Monkeymario. Місяць тому +1

    0:15 plz just eat it anyways even if it turns ou good

  • @krishsamraj
    @krishsamraj Рік тому +1

    OK! First PolyMars Now This?

    • @Will-404
      @Will-404  Рік тому

      definitely took a lot of inspiration from him I can't lie

  • @for3st945
    @for3st945 2 роки тому

    Only 400 view wth. Your content is hella good bro !

    • @Will-404
      @Will-404  2 роки тому

      Love comments like this, thanks a lot man. 400 views is still good in my eyes tho 👀👀

  • @champion_ofcloud-var
    @champion_ofcloud-var Місяць тому

    this is literally how fast the tetris pieces fall originally, what are you talking about

  • @Monkeymario.
    @Monkeymario. Місяць тому +1

    0:57 use stickers

  • @Redzite
    @Redzite 2 роки тому +2

    how do i get it in my server

  • @joelgonzalez1571
    @joelgonzalez1571 Рік тому

    This is just what I needed ty!!!!

    • @Will-404
      @Will-404  Рік тому

      ahaha no worries ❤️

  • @Mutrax4706
    @Mutrax4706 Місяць тому

    does the bot automatically edit the messages because the event for edited message is constantly triggered? or is it because the python version just runs passively?
    cuz ik javascript uses event triggers, so im a little confused how your code just runs passively

    • @Will-404
      @Will-404  Місяць тому

      I pretty much botched this together so I forgot lmao sorry. But I think it's the first thing which is why it's limited to only editing it once a minute, otherwise it gets rate limited.

    • @Mutrax4706
      @Mutrax4706 Місяць тому

      @@Will-404 well the edit being done through an event trigger or smth else shouldnt be much of a difference in the limit. making a new edit still is an API request

    • @Will-404
      @Will-404  Місяць тому

      Ah I have no idea then lol sorry, I've never really been very familiar with API calls and that, I just pretty much googled the easiest thing to do 😬

  • @kano7837
    @kano7837 9 місяців тому +1

    oh bro thats sick, any chance to get this as js please ??

  • @user-xh1mv6wv5z
    @user-xh1mv6wv5z Рік тому

    good job i used this as a tutorial keep up the good work!!

    • @Will-404
      @Will-404  Рік тому +1

      thanks dude, I'm glad it helped

  • @oAnshul
    @oAnshul 2 роки тому +3

    can we get the codes please?
    Tho this was pretty fun to watch and should get wayyy more views

    • @Will-404
      @Will-404  2 роки тому +2

      thank you sm dude, I'll see if I can get the code uploaded when I'm home 🙃

    • @Will-404
      @Will-404  2 роки тому +2

      Sorry the codes a complete mess but here ya go: github.com/willcantcode/Tetris-Discord-Bot

    • @oAnshul
      @oAnshul 2 роки тому +1

      @@Will-404 man its really smart taking the fact that u coded it in python which gets challenging great job, keep it up

    • @Will-404
      @Will-404  2 роки тому

      @@oAnshul damn thank you dude ❤️

  • @tasos5005
    @tasos5005 Місяць тому

    The big question: Can you do a T-Spin in this?

  • @bryceblazegamingyt9741
    @bryceblazegamingyt9741 Місяць тому

    Why did you do a ton of math for rotation when you could have just had hard coded shapes for different rotations

    • @Will-404
      @Will-404  Місяць тому

      Smh yeah I think I probably should've just done it that way 🥴 That woulda saved me so much time lmao

  • @elenamednaya9399
    @elenamednaya9399 Рік тому +1

    That was really good!👏Is there a way to add him in my server?

    • @Will-404
      @Will-404  Рік тому +1

      Thank you :) I've not made it possible just yet but since so many people are asking I think ima have to look into it a bit more

  • @Voyek
    @Voyek Місяць тому

    Can you add 7 bag to make the Tetris feel more consistent rather than making it random?

  • @chencyjames
    @chencyjames 2 роки тому

    Just start playing dc, and it is great to watch your video, hope you will make this game perfect to run. btw, where to buy the chocolate. I want to try.

    • @Will-404
      @Will-404  2 роки тому +1

      thank you dude, I got it from a website called firebox 🙃

  • @charmander328
    @charmander328 2 роки тому

    Underrated channel

    • @Will-404
      @Will-404  2 роки тому

      🥹 thank you 🙏

  • @minecrafteksperten
    @minecrafteksperten 11 місяців тому

    this guy underated

    • @Will-404
      @Will-404  11 місяців тому

      thanks dude 🙂

  • @ByteBeacon9660
    @ByteBeacon9660 3 місяці тому

    why didn't you use normal discord buttons? or those weren't around in 2022?

    • @Will-404
      @Will-404  3 місяці тому

      Yeah I'm not even sure I've seen them so don't think so 🫣

  • @roiknight5364
    @roiknight5364 Рік тому +1

    Can it run doom though?

  • @decablade
    @decablade 2 роки тому

    Amazing video! You should try making another discord bot since watching this video is so fun.
    You could update the bot to make the game use button 😏

    • @Will-404
      @Will-404  2 роки тому

      ahaha maybe I will 👀, and thank you!!

  • @JizzyDipper
    @JizzyDipper Місяць тому

    erm what in the rate limit????

  • @ShakirAnwarArhaan_Arsh
    @ShakirAnwarArhaan_Arsh Рік тому

    Subscribed and liked keep it up bro also pls make a video on how to get a free vps and bot api

    • @Will-404
      @Will-404  Рік тому

      thank you dude! and yh I'll have to have a look into it 🙃

  • @DevXP
    @DevXP Місяць тому +1

    👍

  • @AI__Machine
    @AI__Machine 2 роки тому

    ONLY 1.4k views on this uplaoded 2 months ago, bruh. insta sub, im ur 206th sub

  • @godfather2025
    @godfather2025 2 роки тому

    Bro you are amazing 👍

  • @FamTech.
    @FamTech. Місяць тому +1

    Here before this blows up gang!
    👇

    • @DccToon
      @DccToon Місяць тому

      the video is 2 years old

    • @Will-404
      @Will-404  Місяць тому +1

      never say never 🫣

    • @FamTech.
      @FamTech. Місяць тому +1

      @@DccToon yeah but I have seen videos blow up after 10 years

    • @DccToon
      @DccToon Місяць тому

      @@Will-404 bro just casually appeared (yay)

    • @Will-404
      @Will-404  Місяць тому

      lmao I read every comment

  • @Belbasaur3
    @Belbasaur3 Місяць тому

    700th sub!!!!!

    • @Will-404
      @Will-404  Місяць тому +1

      hellllll yeah buddy thank you!!

    • @Belbasaur3
      @Belbasaur3 Місяць тому

      @@Will-404 Happy to help! :D
      Keep up the good work :) love ur vids

    • @Will-404
      @Will-404  Місяць тому +1

      you legend, thank you

    • @Belbasaur3
      @Belbasaur3 Місяць тому

      @@Will-404 :D

  • @merc4644
    @merc4644 2 місяці тому

    Can you update it so it can go back online or put the source code up so someone else can?

  • @Mr_Uras
    @Mr_Uras 2 роки тому

    How tf are you not 10k subs

    • @Will-404
      @Will-404  2 роки тому

      lmao I been thinking the same thing 🤔

    • @VnM-vm3wm
      @VnM-vm3wm 2 роки тому

      Don't do that my man deserves more

    • @Will-404
      @Will-404  2 роки тому

      @@VnM-vm3wm legend

  • @blockman_games17
    @blockman_games17 Місяць тому

    but can it run doom?

  • @defeatSpace
    @defeatSpace Місяць тому

    Do bots hate for loops??>?

    • @defeatSpace
      @defeatSpace Місяць тому

      Oh, hey, I see one for loop!

    • @Will-404
      @Will-404  Місяць тому

      lmaoo let me be bro 😭

  • @zacksayder
    @zacksayder Рік тому

    Freakin cool

    • @Will-404
      @Will-404  Рік тому

      you're freakin cool‼️

  • @Adodamo23
    @Adodamo23 2 місяці тому

    3:48 today at 0:11 am

  • @Milkguy33
    @Milkguy33 Місяць тому

    1:16 should we tell him about the for loop?....

    • @Will-404
      @Will-404  Місяць тому +1

      lmaooo how did I not think about that 🤦🏼‍♂️

    • @Milkguy33
      @Milkguy33 Місяць тому

      @@Will-404 lool btw, did you thought abous using Pillow module to draw the game screen?

    • @Will-404
      @Will-404  Місяць тому

      Nah would that have been helpful? I've not really used Pillow loads

    • @Milkguy33
      @Milkguy33 Місяць тому

      @@Will-404 try it for a side project, pretty cool library that can work with images

    • @Will-404
      @Will-404  Місяць тому

      Yh it is good tbf, I have used it just didn't know it would be applicable for this

  • @Ramej
    @Ramej Рік тому

    how do i make the repl run forever?

    • @Will-404
      @Will-404  Рік тому +1

      don't think you can do that anymore but not 100% sure

    • @Ramej
      @Ramej Рік тому

      @@Will-404 i was wondering why the square changing variable is never used in the code too
      i tried making the bot and it works fine, but it won't display the game over screen after i clicked the X reaction

  • @KianKD
    @KianKD 2 роки тому

    good video man subbed

    • @Will-404
      @Will-404  2 роки тому

      means a lot, thank you dude ❤️

  • @kollpotato
    @kollpotato Місяць тому

    never let bro cook in python

    • @Will-404
      @Will-404  Місяць тому

      lmaoo

    • @Phoenix_2333
      @Phoenix_2333 Місяць тому

      Will I need intents

    • @Will-404
      @Will-404  Місяць тому

      bro I don't even know what they are 😭

    • @kollpotato
      @kollpotato Місяць тому

      @@Phoenix_2333 depends if you want to use message commands or slash commands, use MESSAGE_CONTENT intent for accessing message content

  • @F1PROX407
    @F1PROX407 Рік тому

    can we do some T spin ?

    • @Will-404
      @Will-404  Рік тому

      I think so? Can't really remember anymore tbh

    • @F1PROX407
      @F1PROX407 Рік тому

      @@Will-404 I'll try

  • @ItsYaBoY119
    @ItsYaBoY119 3 місяці тому

    Hi I have this in my discord bot. Is that okay?

    • @Will-404
      @Will-404  3 місяці тому

      What do you mean?

  • @aaofficial4070
    @aaofficial4070 11 місяців тому

    Do you have a bdfd version code, if so I will subscribe and keep watching your videos

    • @WextraYT
      @WextraYT 8 місяців тому

      whats bdfd?

  • @carlosandrecastoldi2544
    @carlosandrecastoldi2544 Рік тому

    can u disponibilize the link to invite?

  • @Sky-games-001
    @Sky-games-001 Місяць тому

    Copy?

  • @lilychuuchuu
    @lilychuuchuu 2 роки тому

    Can you make it so it works in multiple servers at once?

    • @Will-404
      @Will-404  2 роки тому +1

      yh just means hosting it somehow, which usually costs money so I didn't bother

    • @lilychuuchuu
      @lilychuuchuu 2 роки тому

      @@Will-404 No like making it so 2 different servers or 2 different people can play tetris at the same time. I thought it was a code issue that prevented it from doing that, is it not?

    • @lilychuuchuu
      @lilychuuchuu 2 роки тому

      @@Will-404 What's your discord I could better explain it there

    • @lilychuuchuu
      @lilychuuchuu 2 роки тому

      @@Will-404 Hello?

    • @lilychuuchuu
      @lilychuuchuu 2 роки тому

      @@Will-404 added

  • @mandaxgutirrex2674
    @mandaxgutirrex2674 Рік тому

    bro how i get this bot to my server?

    • @Will-404
      @Will-404  Рік тому

      you have to create the bot yourself using my code in the description unfortunately

  • @optreee6153
    @optreee6153 2 роки тому +1

    HOW TO DO THE CODING???

  • @hdhhh1517
    @hdhhh1517 9 місяців тому

    Can you make an invite link?

  • @Fox._.vr01
    @Fox._.vr01 Рік тому

    Where can you get it 😅

    • @Will-404
      @Will-404  Рік тому

      you can't rn unfortunately - but the code is in the description if you wanna make the bot for yourself :)

  • @Dkzz001
    @Dkzz001 2 роки тому

    but have a code 127 is a bug

    • @Will-404
      @Will-404  2 роки тому

      you mean line 127? What's wrong with it 😳

    • @Dkzz001
      @Dkzz001 2 роки тому

      Have bugued

  • @stick_z
    @stick_z Рік тому +1

    code not working

    • @Will-404
      @Will-404  Рік тому

      oh idk what's happened then, sorry dude

    • @stick_z
      @stick_z Рік тому

      @@Will-404 can u give me bot link

    • @Will-404
      @Will-404  Рік тому

      Im not able to host it sorry :/

  • @samuraiX4049
    @samuraiX4049 3 місяці тому

    really cool bot but how do i get it?

    • @Will-404
      @Will-404  3 місяці тому

      I haven't made it available sorry. Actually playing it is hella boring though so you're not missing a lot

    • @samuraiX4049
      @samuraiX4049 3 місяці тому

      @@Will-404 k but it would be really cool to have

  • @hhhcirA
    @hhhcirA 2 роки тому

    TRY TO T SPIN

    • @Will-404
      @Will-404  2 роки тому

      just tried it and it didn't work lol, maybe idk how to do it right tho 🤷🏼‍♂️

  • @theguyr1234_scratch
    @theguyr1234_scratch Місяць тому +1

    u didnt lose the challange @Will-404

    • @Will-404
      @Will-404  Місяць тому +1

      Ty bro 🙏🏼