I was bored so I wrote some shitty code.

it’s one of those “twitch plays” bots. I don’t really plan on using it all that much, but it’s still on from testing, so if you’d like, you can play.

The current game is Pokemon red.

Currently, it requires 10 votes to do an action, although it should probably just be on a timer. Use lowercase A, B, U, D, L, R to vote. If there is more than one character in your comment, then your vote won’t count.

Also, I don’t know if upper case letters even work. (Like I said, shitty code)

www.twitch.tv/hambone41801
  • Like
Reactions: 2 people

Comments

when you say it needs ten votes, then does that mean that nothing happens if there are only 9 people watching?
 
No, that just means that ten votes need to be cast. You can vote as many times as you would like. However, I switched it over to execute an action on every vote.

@dionicio yea, I fixed that shortly after I posted.
 
How hard would it be to add a scaling algorithm? Something like counting the number of votes per minute and if it exceeds a certain threshold then it starts doing 10 votes per command, 100 votes, etc?
 
Not too difficult, but at most, three people have shown up at a time, so there really isn’t much of a point. Also, if I did that, I would probably do it in java instead.
 

Blog entry information

Author
HamBone41801
Views
221
Comments
16
Last update

More entries in Personal Blogs

More entries from HamBone41801

Share this entry

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    Mobile app is such absolute dogshit, I haven't used it in SO long
  • K3Nv2 @ K3Nv2:
    Yeah mobile versions better people don't think about how apps are just shrunken down websites
  • K3Nv2 @ K3Nv2:
    Could be the phone connection etc I've mostly been fine with the app
  • K3Nv2 @ K3Nv2:
    Regardless fuck bezos
    +1
  • Sicklyboy @ Sicklyboy:
    Agreed. Crazy how both seeking a job at Amazon, and subsequently quitting Amazon, are both some of the best decisions I've ever made
  • K3Nv2 @ K3Nv2:
    Did someone loose a leg? You're fired
  • K3Nv2 @ K3Nv2:
    Ffs 55gb patch for hogwarts legacy
  • SylverReZ @ SylverReZ:
    @K3Nv2, Teslas are prob running Windows XP to this day.
  • Sicklyboy @ Sicklyboy:
    sometimes I wonder where I went wrong and why I'm so dissatisfied with my life
  • Sicklyboy @ Sicklyboy:
    Then I find myself arguing with someone on reddit about how blatantly wrong their understanding of the USB Power Delivery specification is.
  • Sicklyboy @ Sicklyboy:
    At 1 AM.
  • Sicklyboy @ Sicklyboy:
    Where did I go wrong, again? 😕
  • SylverReZ @ SylverReZ:
    @Sicklyboy, What do you mean?
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, always blame women
  • Veho @ Veho:
    Blame woke.
  • SylverReZ @ SylverReZ:
    Blame society.
  • K3Nv2 @ K3Nv2:
    Woke isn't part of society they woke up from it
    +1
  • Veho @ Veho:
    *spends years yelling "wake up sheeple"
    *acts shocked when they actually wake up
  • Veho @ Veho:
    Make up your mind.
  • K3Nv2 @ K3Nv2:
    You mean the government doesn't care? :(
  • Veho @ Veho:
    I have no idea what you're talking about.
  • K3Nv2 @ K3Nv2:
    The government
    SylverReZ @ SylverReZ: https://www.youtube.com/clip/Ugkx4pNi-wvHyf8vhDN0x06Wf8J7aIgx_Hdp