Update on my shitty code.

Its been quite a while since I last talked about that little twitch bot I created, and a lot has changed, so I figured I'd make an update post.

  • The biggest change to take place is that I made the jump from python to java.
  • For those who don't know, when using java's built in socket api, the program will freeze while it waits for input from the server. in python, I just made it wait for a second and then ping the server, but in the java version, I've implemented some time-sensitive features the wont work using that. Instead, I created a listener class that gets info from the server and then puts it into a queue to be used by the main class. (This works infinitely better than my python solution)
  • I created a User class that that keeps track of every user's rank, warnings, "points", and whether or not they are watching your stream. (this is part of another feature that I'll talk about next). Users are added to a hashMap whenever they either say something in chat, or when their join message appears.
  • The points feature adds 1 point every minute to every user while they are watching your stream. (I'm using it to create commands with cooldowns)
  • Like
Reactions: 1 person

Comments

@Futurdreamz I'm not good enough with c++ to make something like this in it. java was the first language I learned, so I'm pretty comfortable using it.
 
That I can understand, but I am NEVER letting Oracle onto my computer and I'd suggest you dot eh same if possible.
 

Blog entry information

Author
HamBone41801
Views
255
Comments
14
Last update

More entries in Personal Blogs

More entries from HamBone41801

General chit-chat
Help Users
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion