Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jubalh/hedwig
Extendable XMPP bot written in C
https://github.com/jubalh/hedwig
bot c libstrophe remote-control xmpp
Last synced: about 1 month ago
JSON representation
Extendable XMPP bot written in C
- Host: GitHub
- URL: https://github.com/jubalh/hedwig
- Owner: jubalh
- Created: 2017-07-25T16:34:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T12:50:40.000Z (over 6 years ago)
- Last Synced: 2024-11-02T02:42:15.366Z (3 months ago)
- Topics: bot, c, libstrophe, remote-control, xmpp
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hedwig
hedwig is a small XMPP bot written in C.
It understands the following commands:
- !exec : run any program via popen()
- !cmd : run defined commands
- !quit : quit hedwigOnly people in the roster are allowed to run commands.
All messages to hedwig will be printed out on stdio.The `!exec` option is disabled by default for security reasons. To enable it start hedwig with `-e`.
`!cmd` is used to extend the bot. It runs files that have the executable bit set and are in a certain directory.
By default that is the current working directory, but you can define it with `-d`.## Example
```
cd ~/hedwigs-plugins
echo "echo 'hello harry'" > greet
echo "ls" > list-commands
chmod u+x greet list-commands
hedwig -j [email protected] -p ooohooh -d ~/hedwigs-plugins
```## Building
```
qmake
make
./hedwig -j [email protected] -p ooohooh
```