Skip to content

MapManagement/weisserbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 

Repository files navigation

Bot

TwitchBot written in Python using TwitchIO. Currently, only Weissemoehre is using this bot on his Twitch Channel. Further implementations are planned and listed at the "Future" section. If you also have ideas or want to report a bug, either message Mapman or WeisseMoehre on Twitter including your concern or just contribute your ideas/fixes. Each constructive contribution is welcomed and will hopefully improve the code and add more features to use.

HowTo

Commands to use in streamer's chat:
 
Add command
!new_cmd <command_name> <command_content>

Edit command
!edit_cmd <command_name> <command_content>

Delete command
!del_cmd <command_name>

Enabling or disabling a commmand
state can be "on" or "off"
!turn_cmd <command_name> <state>

More commands

Sends the time (in days) the author has followed
!followage

Sends the time the author watched the stream
!watchtime

Adds the watchtime of your old nickname to your newer one (only the streamer is able to do that)
!add_wt <old_name> <new_name>

Sends the number of users who subscribed to the streamer
!subcount
   
Sends the elapsed time since the stream started
!uptime

CommandNotFound Error

Since most of the commands which are created by users in the Twitch chat are handled by my command_handler, I decided to edit the event_command_error function in bot.py of TwitchIO so nothing will be printed to the terminal when any message starts with a command prefix and a "CommandNotFound" Error was thrown.

Future

  • creating a website connected to the bot
  • possibly creating a public repo on GitHub
  • implementing MySQL databases for watchtime and other stuff
  • finishing sub count command
  • finding a solution for problems with followage command
  • replacing json file with database and message_handler
  • function for adding /me at the start of each bot message
  • consistent usage of ONE way to declare paths
  • catching CommandNotFound error
  • expand README with better instructions and explanations
  • creating a Discord bot that is connected to the Twitch bot
  • working on a better way of tracking the watched time of users
  • creating a command list that is constantly updated

About

Twitch Chatbot written in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages