Skip to content
This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexpython

This HexChat plugin runs Python code and sends the result to the current channel. To use it, type >>> print(1+2) to a channel, and it will automatically appear as if you also typed 3 after that.

screenshot

Try without installing:

  1. Download hexpython.py to your computer. There are several ways to do this (choose one):
    • Likely easiest way: Make a new file in a text editor (e.g. Windows notepad), and copy/paste the content there
    • Terminal (not for Windows): wget https://raw.githubusercontent.com/Akuli/hexpython/main/hexpython.py
    • Terminal (if you have installed git): git clone https://github.com/Akuli/hexpython
    • Click green "Code" button on GitHub, click "Download ZIP", then extract the zip
  2. In HexChat, type /load and then path to the file. For example, /load /home/akuli/hexpython/hexpython.py. If you get Maybe you need to install the Perl or Python plugin? errors on Windows, you likely need to install Python 3.6 and then reinstall HexChat. HexChat needs 3.6 specifically, so newer Pythons won't help, but it's fine to have many Python versions installed at the same time. See hexchat/hexchat#2171.

To install so that it auto-loads when HexChat starts, copy hexpython.py to HexChat's plugin folder:

  • Windows: open "Run" prompt from start menu, type %appdata%\HexChat\Addons, drag and drop hexpython.py there
  • Linux or MacOS: run cp path/to/hexpython.py ~/.config/hexchat/addons/

About

HexChat plugin to run Python code and send result to channel

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages