Giter Club home page Giter Club logo

respoon's Introduction

Respoon

Automatic response manager addon for Hexchat

Usage

Add an automatic response : /RESPOON ADD <name> <server> <channel> "<trigger>" MSG|CMD <action>

List every automatic responses : /RESPOON LIST

Show properties of a specific response : /RESPOON SHOW <name>

Edit an automatic reponse : /RESPOON EDIT <name> <server> <channel> "<trigger>" MSG|CMD <action>

Remove an automatic reponses : /RESPOON DELETE <name>

Property <trigger> is in regex format. Keep double-quote around if the regex contains spaces.

You can use those escape sequences in the <action> property :

  • {user} : the nick of the user
  • {message} : the full message that has been sent
  • {server} : the server where the message has been sent
  • {channel} : the channel where the message has been sent
  • {params[x]} : the match of your regex at index 'x'

Examples

/RESPOON ADD hello_resp *.worldnet.net #mychannel ^Hello.+$ MSG Welcome {user} !

/RESPOON ADD eat_muffin * * "^Who wants a muffin ?$" CMD ME eat the muffin !

/RESPOON EDIT eat_muffin * * "^Who wants a (.+) ?$" CMD ME eat the {params[0]} !

/RESPOON DELETE eat_muffin

respoon's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

frangal

respoon's Issues

Respoon not loading with HexChat 2.14.3 in Debian 11

Only getting the following message, thank you.

Failed to load module: cdata 'char[4096]' has no attribute 'decode'
Traceback (most recent call last):
File "<init code for '_hexchat_embedded'>", line 152, in loadfile
File "/home/matt/.config/hexchat/addons/respoon.py", line 204, in
respoon_list = load_pref()
File "/home/matt/.config/hexchat/addons/respoon.py", line 71, in load_pref
for pref in hexchat.list_pluginpref():
File "/usr/lib/x86_64-linux-gnu/hexchat/python/_hexchat.py", line 322, in list_pluginpref
return __decode(prefs_str).split(',')
File "/usr/lib/x86_64-linux-gnu/hexchat/python/_hexchat.py", line 55, in __decode
return string.decode()
AttributeError: cdata 'char[4096]' has no attribute 'decode'

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.