Hibot
Presentation
Hibot is a bot written in Ruby and based on the excellent cinch gem. The gem is developped using the plugins principle. You can just load the needed plugins and so you don't have to configure and to enable all plugins.
Installation
Install the gem through rubygems. Use the basic command gem install hibot. Then you have to create a hibotrc yaml file that respects the following syntax :
---
:general:
:server: your.server.irc
:channels:
- '#channel1'
- '#channel2'
- ...
:nick: your-bot-nick
:plugins.plugins:
- Hibot::Spotify
- ... # see the plugin list below to see which plugins are available
*NOTE : * The default hibotrc location is in your $HOME directory. So if you don't want to override the default behavior, just create a hidden .hibotrc file in your $HOME.
Then, just run the hibot binary to launch the bot. If you changed to default hibotrc location, you can use the -c or --config flag to specify where is your config file.
Plugins
To use a plugin, first you have to add it to the hibotrc file. Then configure the plugin if some extra configuration is needed. Here is the plugin list and the instructions per plugin :
- Hibot::Spotify : allows you to parse Spotify uri when pasted in a channel or to search through Spotify's API some data.
To use this plugin, you have to create a spotify application. You can do it from here. When it's done, copy you client ID and client Secret to the hibotrc file with that structure :
---
# here comes the general configuration
:Hibot::Spotify:
:client_id: your_client_id
:client_secret: your_client_secret
- Hibot::Giphy : allows you to get random gif uri matching your query
To use this plugin, you have to request an API key more information about how to get a key here. When you have your key, complete the hibotrc file with that structure :
:Hibot::Giphy:
:api_key: your_api_key
Contribute
- Fork it
- Dev it
- Pull request it
- Enjoy it