Difference between revisions of "Ircbot"

From Fixme.ch
Jump to: navigation, search
m (moved Jsonbot to Ircbot)
(Configuration and Installation)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Services]]
 
[[Category:Services]]
 
== Information ==
 
== Information ==
* FIXMYBOT on Freenode
+
* FIXMYBOT on Freenode in #fixme and #fixme-ctf
* The documentation has been down for ages
+
* We're using [https://github.com/embolalia/willie Willie]
** Mirror: http://jsonbot.readthedocs.org/en/latest/index.html
+
** extras modules https://github.com/embolalia/willie-extras
* Code: https://code.google.com/p/jsonbot/
+
* https://github.com/embolalia/willie/wiki/Commands
  
== Configuration ==
+
== Configuration and Installation ==
* Main: /home/irc-bot/.jsb/config/mainconfig
+
* /home/irc-bot/.willie/default.cfg
* Bot: /home/irc-bot/.jsb/config/fleet/fixmybot/config
+
* Started in <s>/etc/rc.local</s> /etc/inittab
* Don't use init script, the bot is started with crontab for user irc-bot
+
* Installation (latest version with better rss module)
 +
cd /tmp; git clone git://github.com/embolalia/willie.git
 +
cd willie; python setup.py install; rm -fr /tmp/willie
 +
pip install feedparser pytz lxml pygeoip praw tweepy
 +
apt-get install python-enchant python-mysqldb
 +
 
 +
su -c 'willie -w' irc-bot #configuration
 +
su -c 'willie --fork' irc-bot #run in background
  
 
== Plugins ==
 
== Plugins ==
 
=== RSS ===
 
=== RSS ===
* Add the feed and register it to a channel/user:
+
  .rss add #channel name http://example.com/rss
  !rss-add name http://example.com/rss
+
  .rss del name
  !rss-start name #from the channel/user
+
  .rss list
  !rss-running
+
 
* Show feed registered channels
+
  .startrss -i 120 #interval in seconds
  !rss-channels name
+
* Show feed url
+
!rss-url name
+
* Delete feed
+
!rss-del anme
+

Latest revision as of 13:48, 28 August 2014

Information

Configuration and Installation

  • /home/irc-bot/.willie/default.cfg
  • Started in /etc/rc.local /etc/inittab
  • Installation (latest version with better rss module)
cd /tmp; git clone git://github.com/embolalia/willie.git
cd willie; python setup.py install; rm -fr /tmp/willie
pip install feedparser pytz lxml pygeoip praw tweepy
apt-get install python-enchant python-mysqldb
su -c 'willie -w' irc-bot #configuration
su -c 'willie --fork' irc-bot #run in background

Plugins

RSS

.rss add #channel name http://example.com/rss
.rss del name
.rss list
.startrss -i 120 #interval in seconds