I'm making my shitty code not-so-shitty, and I'd like your help!

when I first made the twitch bot, I figured It'd be a fun experiment and that I would never touch it again. However, I started cleaning up the code, and I realized that the console was really messy and could use some work. After I finished color-coding and formatting everything, I realized that it might be useful to have time-stamps. This went on for a little bit, and not I have a halfway decent twitch bot. It still has a few missing features, but once I get the config module sorted out, I think I'm going to put it on GitHub for others to use.

I would like some help from you guys, however. If any of you have features that you think would be nice, I would love to hear your ideas.

current features:
  • basic call/response commands
  • custom commands (a little bit harder to explain, but since python can compile on the fly, I created a bit that runs any python file in the commands folder when someone says something in chat that matches the filename and begins with a '!')
  • timestamps
  • timed announcements

planed features:
  • a second terminal that can be used to take manual input. (this is going to be super annoying in python. not looking forward to it)
  • Like
Reactions: 1 person

Comments

Maybe as a bit of a suggestion (I'd love to have a publicly available TPP-esque bot), maybe implement a solution so that if less then 10 people are watching/have chatted in the last minute (you mentioned before that your bot only responds after 10 votes) that it only takes the votes of the amount of people watching/having chatted in the past bit when having to account for a move.

Sorry if that sounds a bit complicated.
 
  • Like
Reactions: 1 person
I can do that. currently I have two builds. The TPP one, and a general purpose one(like nightbot). I actually haven't implemented a user list yet, so I'll start on that now.
 
after reading up on it, getting the join/leave messages for a user can take up to 2 minutes. so it will take a few minutes to switch from one mode to the other.
 

Blog entry information

Author
HamBone41801
Views
182
Comments
6
Last update

More entries in Personal Blogs

More entries from HamBone41801

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: It's how we used to cheat at Pokewalker.