The KISS Twitch bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
623 B

  1. #!/usr/bin/env python3
  2. import irc3
  3. from _twitchbot.config import get_config
  4. from _twitchbot import twitchbot
  5. TWITCH_IRC_SERVER = "irc.chat.twitch.tv"
  6. TWITCH_IRC_PORT = 6697
  7. def main() -> int:
  8. config = get_config()
  9. print(config.timer.messages)
  10. bot = irc3.IrcBot.from_config({
  11. 'nick': config.nickname,
  12. 'password': config.token,
  13. 'autojoins': [config.channel],
  14. 'host': TWITCH_IRC_SERVER,
  15. 'port': TWITCH_IRC_PORT,
  16. 'ssl': True,
  17. 'includes': [twitchbot.__name__]
  18. })
  19. bot.run(forever=True)
  20. return 0
  21. if __name__ == '__main__':
  22. exit(main())