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...
-------------------------------------------------------------------------
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 🤞
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 ✌.
kewl
Heyy
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.
Damn I really appreciate that dude thank you
um
respecting you for eating the chocolate because of a discord limitation
hard regrets 🥴
706 SUBS ONLY?! BRO THAT IS CRIMINALLY UNDERRATED. I THOUGHT THIS WOULD HAVE LIKE 200K
Lmao I wish bro
@@Will-404 keep working at it and youre gonna succeed. you got the formula for success all you need is time. big fan
thank you so much, means a lot fr
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
absolutely love comments like these, thank you so much 🙏🏼
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 😭
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
@@Will-404 well you can add it to replit and host using uptimerobot..
@@Will-404 I'll cover the hosting fees make it stable
how is this impressive
This is quite a good video! Good on you!
Thanks man 😁
5:32 YAY HE EAT CHOCOLATE
5:31 😂😂😂 LOL SO FUNNY 😂😂😂
it was torture 😭😭
Really nice video! Motivating me to code myself a game :)
that's sick, you 100% should do you'll enjoy it. You have any ideas what you're gonna make?
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
Its called opensource
@@Turtlegamer. This is two years old why did you reply
and this video is not viral why???
lmaoo that's what I'm saying
The UA-cam aglorithm
Just found your channel and its great so im subbing
damn I appreciate that dude thank you
i smell a underated youtuber
thanks man
@@Will-404 :D
Gold, you just earned a sub
Thanks bro 🙏🏼
Nice one Will. Is the bot available to add in servers?
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 🙏
add it anyways
@@Will-404 bro add it people want this bot
I'm p sure I can't since it'll get rate limited like mad :/
@@Will-404provide the source code so people can host it themselves!
this aint bad at all this is cool asf
I think if you played the game you might disagree lmao but thank you bro
great video!!
Thank you man 🙏🏼
Bru I’ll eat the chocolate myself after seeing this
Damn good video, do u have a discord server?
thanks dude 🙏, I don't have one rn but hopefully in the future 👀
How to I put it on my server?
he put the code in the description
@@Luna5829not everyone knows how to make a discord bot. also this comment was a year ago 😭
@@4ntizero nuh uh
@@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?
@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.
*can he run doom tho?* (btw this is perfection. i really thought that i was trippin)
0:15 plz just eat it anyways even if it turns ou good
5:32 YAY HE EAT CHOCOLATE 5:32
lmao
OK! First PolyMars Now This?
definitely took a lot of inspiration from him I can't lie
Only 400 view wth. Your content is hella good bro !
Love comments like this, thanks a lot man. 400 views is still good in my eyes tho 👀👀
this is literally how fast the tetris pieces fall originally, what are you talking about
Lmaoo exactly
0:57 use stickers
how do i get it in my server
This is just what I needed ty!!!!
ahaha no worries ❤️
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
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.
@@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
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 😬
oh bro thats sick, any chance to get this as js please ??
good job i used this as a tutorial keep up the good work!!
thanks dude, I'm glad it helped
can we get the codes please?
Tho this was pretty fun to watch and should get wayyy more views
thank you sm dude, I'll see if I can get the code uploaded when I'm home 🙃
Sorry the codes a complete mess but here ya go: github.com/willcantcode/Tetris-Discord-Bot
@@Will-404 man its really smart taking the fact that u coded it in python which gets challenging great job, keep it up
@@oAnshul damn thank you dude ❤️
The big question: Can you do a T-Spin in this?
Why did you do a ton of math for rotation when you could have just had hard coded shapes for different rotations
Smh yeah I think I probably should've just done it that way 🥴 That woulda saved me so much time lmao
That was really good!👏Is there a way to add him in my server?
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
Can you add 7 bag to make the Tetris feel more consistent rather than making it random?
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.
thank you dude, I got it from a website called firebox 🙃
Underrated channel
🥹 thank you 🙏
this guy underated
thanks dude 🙂
why didn't you use normal discord buttons? or those weren't around in 2022?
Yeah I'm not even sure I've seen them so don't think so 🫣
Can it run doom though?
lmaooo workin on it
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 😏
ahaha maybe I will 👀, and thank you!!
erm what in the rate limit????
Subscribed and liked keep it up bro also pls make a video on how to get a free vps and bot api
thank you dude! and yh I'll have to have a look into it 🙃
👍
ONLY 1.4k views on this uplaoded 2 months ago, bruh. insta sub, im ur 206th sub
love this, thank you dude
@@Will-404 OMG
Bro you are amazing 👍
you legend
Here before this blows up gang!
👇
the video is 2 years old
never say never 🫣
@@DccToon yeah but I have seen videos blow up after 10 years
@@Will-404 bro just casually appeared (yay)
lmao I read every comment
700th sub!!!!!
hellllll yeah buddy thank you!!
@@Will-404 Happy to help! :D
Keep up the good work :) love ur vids
you legend, thank you
@@Will-404 :D
Can you update it so it can go back online or put the source code up so someone else can?
How tf are you not 10k subs
lmao I been thinking the same thing 🤔
Don't do that my man deserves more
@@VnM-vm3wm legend
but can it run doom?
Do bots hate for loops??>?
Oh, hey, I see one for loop!
lmaoo let me be bro 😭
Freakin cool
you're freakin cool‼️
3:48 today at 0:11 am
1:16 should we tell him about the for loop?....
lmaooo how did I not think about that 🤦🏼♂️
@@Will-404 lool btw, did you thought abous using Pillow module to draw the game screen?
Nah would that have been helpful? I've not really used Pillow loads
@@Will-404 try it for a side project, pretty cool library that can work with images
Yh it is good tbf, I have used it just didn't know it would be applicable for this
how do i make the repl run forever?
don't think you can do that anymore but not 100% sure
@@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
good video man subbed
means a lot, thank you dude ❤️
never let bro cook in python
lmaoo
Will I need intents
bro I don't even know what they are 😭
@@Phoenix_2333 depends if you want to use message commands or slash commands, use MESSAGE_CONTENT intent for accessing message content
can we do some T spin ?
I think so? Can't really remember anymore tbh
@@Will-404 I'll try
Hi I have this in my discord bot. Is that okay?
What do you mean?
Do you have a bdfd version code, if so I will subscribe and keep watching your videos
whats bdfd?
can u disponibilize the link to invite?
Copy?
Can you make it so it works in multiple servers at once?
yh just means hosting it somehow, which usually costs money so I didn't bother
@@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?
@@Will-404 What's your discord I could better explain it there
@@Will-404 Hello?
@@Will-404 added
bro how i get this bot to my server?
you have to create the bot yourself using my code in the description unfortunately
HOW TO DO THE CODING???
Can you make an invite link?
Where can you get it 😅
you can't rn unfortunately - but the code is in the description if you wanna make the bot for yourself :)
but have a code 127 is a bug
you mean line 127? What's wrong with it 😳
Have bugued
code not working
oh idk what's happened then, sorry dude
@@Will-404 can u give me bot link
Im not able to host it sorry :/
really cool bot but how do i get it?
I haven't made it available sorry. Actually playing it is hella boring though so you're not missing a lot
@@Will-404 k but it would be really cool to have
TRY TO T SPIN
just tried it and it didn't work lol, maybe idk how to do it right tho 🤷🏼♂️
u didnt lose the challange @Will-404
Ty bro 🙏🏼