6

Github GitHub - lf94/jyoti: A simple IRC bot for use with shell scripts

 3 years ago
source link: https://github.com/lf94/jyoti
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Jyoti - A simple IRC bot for use with shell scripts

Zero dependencies.

Simple usage.

Hackable.

Usage

The idea is that Jyoti can be repurposed easily with shell scripts, removing the need to write a new bot each time.

Here is how Jyoti should be used in general, using all its options:

jyoti                     \
  "rust-repl-bot"         \ # Name
  'irc.freenode.net:9997' \ # Server
  '##rust'                \ # Channel
  './shell-script.sh'       # Script

All arguments are required.

The following are then passed to shell-script.sh as separate lines:

  • The message sent to the user.

At this point the script does some work and returns everything on stdout.

You should use the timeout program or similar from coreutils to stop the program if it takes too long to execute in shell scripts.

Run Jyoti multiple times if multiple bots are needed.

Licensing

This software is (c) lf94. If you wish to use it for any reason, contact me, and more than likely I will grant you full permissions; this means the ability to modify, distribute, and even sell the software. This is an effort to fight individual exploitation in the FOSS community.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK