GithubHelp home page GithubHelp logo

oxguy3 / twitch-tweaks Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 128 KB

A HexChat plugin for making Twitch IRC more intelligent

License: MIT License

Python 100.00%
twitch hexchat hexchat-plugin python

twitch-tweaks's Introduction

twitch-tweaks

Twitch Tweaks, or TwTw for short, is a HexChat plugin for making Twitch IRC a lot more intelligent. Shows the status and game for Twitch channels as the topic, and set the tab name to the properly-capitalized channel's name with a little bullet indicating if that channel is live or not (here's a screenshot).

This is an expanded version of a script called twitch-title.py by PDog, which you can find in Poorchop/hexchat-scripts.

Installation

Installation is no different than any other HexChat plugin. You need to have the Python interface installed on your HexChat for it to work (if you don't have it, you can just re-run the HexChat installer to get it -- it won't override your existing settings). I've only tested on Python 3 but maybe it'll work with Python 2, who knows.

Anyway, assuming you have the Python interface plugin for HexChat, you can just drop twitch-tweaks.py into the addons folder inside your HexChat config folder. Don't know where your HexChat config folder is? No worries bro, I got you covered.

Usage

You can probably use this script without having to do any tweaking whatsoever, but if you want, there are some commands and configuration options available.

Commands

  • TWTWSET <value...> - Sets/gets the value of a twitch-tweaks configuration option
  • TWTWREFRESH - Forces twitch-tweaks to refresh the statuses of all Twitch channels
  • TWTWLIST - Lists all preferences set for twitch-tweaks

Configuration/Preferences

Here are all the settings that can be modified with the TWTWSET command, their default values, and brief descriptions of their purpose

  • twitch_api_root = https://api.twitch.tv/kraken (where is Twitch's API server located? shouldn't ever need to change this)
  • twitch_base_domain = twitch.tv (host name used to determine whether or not any given server is a Twitch server. shouldn't ever need to change this)
  • bullet_offline = โ–ก (string displayed beside the names of channels that are currently offline)
  • bullet_online = โ–  (string displayed beside the names of channels that are currently online)
  • modify_topic = 1 (should TwTw change the topic of Twitch channels? 0 or 1)
  • modify_tab = 1 (should TwTw change the tab name of Twitch channels? 0 or 1)
  • lookup_offline_names = 0 (should TwTw look up the proper capitalization of channels which are offline? takes longer, especially if you're joined to a lot of channels. 0 or 1)
  • refresh_rate = 600 (how often, in seconds, should TwTw refresh the Twitch data?)

License

License is MIT license, see the comment at the top of the script

twitch-tweaks's People

Contributors

oxguy3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twitch-tweaks's Issues

Error on loading: SyntaxError: invalid syntax

Got this while trying to load the plugin in Hexchat 2.14.2 on Fedora 29 with python 3.7.

 File "/home/user/.config/hexchat/addons/twitch-tweaks.py", line 7
     <!DOCTYPE html>
     ^
 SyntaxError: invalid syntax
 Error loading module /home/user/.config/hexchat/addons/twitch-tweaks.py

Any update ?

6year ? no news ?
sometime the scrip crash for no reason

Dae#5125 on discord

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.