rbot
4 years agoSkip 1.9 monkeypatches on ruby 2.0 and later master
Giuseppe Bilotta [Fri, 4 Jul 2014 18:10:37 +0000 (20:10 +0200)] 
Skip 1.9 monkeypatches on ruby 2.0 and later

5 years agoset default encoding to UTF-8 for Ruby 1.9 apoc/master oldorigin/HEAD oldorigin/master origin/oldmainline
Giuseppe Bilotta [Fri, 7 Mar 2014 08:32:51 +0000 (09:32 +0100)] 
set default encoding to UTF-8 for Ruby 1.9

5 years ago[plugin] insult, small fix
Matthias H [Thu, 20 Feb 2014 02:12:59 +0000 (03:12 +0100)] 
[plugin] insult, small fix

5 years ago[plugins] random permissions fix
Matthias H [Thu, 20 Feb 2014 02:04:29 +0000 (03:04 +0100)] 
[plugins] random permissions fix

5 years ago[plugin] googlefight fixed regexp
Matthias H [Thu, 20 Feb 2014 02:03:28 +0000 (03:03 +0100)] 
[plugin] googlefight fixed regexp

5 years ago[plugin] fortune: fixed bin/not-found
Matthias H [Thu, 20 Feb 2014 01:37:02 +0000 (02:37 +0100)] 
[plugin] fortune: fixed bin/not-found

5 years agolog fatal/error messages to stderr, but check if daemonized first!
Matthias H [Tue, 18 Feb 2014 22:06:42 +0000 (23:06 +0100)] 
log fatal/error messages to stderr, but check if daemonized first!

5 years agoCatch another non-standard error
Giuseppe Bilotta [Thu, 20 Feb 2014 20:50:27 +0000 (21:50 +0100)] 
Catch another non-standard error

5 years agoProperly quote salut-italian
Giuseppe Bilotta [Thu, 20 Feb 2014 20:49:00 +0000 (21:49 +0100)] 
Properly quote salut-italian

5 years agochucknorris: read gzip stream before passing it to YAML.load
Giuseppe Bilotta [Thu, 20 Feb 2014 20:06:10 +0000 (21:06 +0100)] 
chucknorris: read gzip stream before passing it to YAML.load

Prevents errors about external_encoding not being defined for the gzip
stream in ruby 1.9+

5 years agoquiz: hint presentation fix for ruby 1.9+
Giuseppe Bilotta [Thu, 20 Feb 2014 20:02:35 +0000 (21:02 +0100)] 
quiz: hint presentation fix for ruby 1.9+

5 years agogettext: change depricated and removed setlocale
Matthias Hecker [Mon, 25 Nov 2013 02:26:44 +0000 (02:26 +0000)] 
gettext: change depricated and removed setlocale

5 years agoRevert "always print FATAL and ERROR logmessages to STDERR"
Matthias Hecker [Tue, 26 Nov 2013 16:13:30 +0000 (16:13 +0000)] 
Revert "always print FATAL and ERROR logmessages to STDERR"

This reverts commit c4d629ad86aae3b8bb4669650df57875252bea92.

5 years agoplugins: improve error handling on load
Giuseppe Bilotta [Fri, 15 Nov 2013 20:56:34 +0000 (21:56 +0100)] 
plugins: improve error handling on load

Support OAuth2::Error braindead extension to StandardError and
wrap loading in an outer rescue to catch problems with the error
handling.

5 years agotwitter: filter ret.latest status if non specified apoc/twitter-htmlfilter-fix
Matthias Hecker [Thu, 14 Nov 2013 15:51:26 +0000 (15:51 +0000)] 
twitter: filter ret.latest status if non specified

5 years agotwitter: changed filter title, to only contain usr
Matthias Hecker [Thu, 14 Nov 2013 15:08:19 +0000 (15:08 +0000)] 
twitter: changed filter title, to only contain usr

5 years agotwitter: fixes the htmlfilter used by url plugin
Matthias Hecker [Thu, 14 Nov 2013 14:49:52 +0000 (14:49 +0000)] 
twitter: fixes the htmlfilter used by url plugin

5 years agoMerge pull request #20 from 4poc/ssl-verify
Oblomov [Thu, 14 Nov 2013 14:23:27 +0000 (06:23 -0800)] 
Merge pull request #20 from 4poc/ssl-verify

Implements SSL verification against a configured CA

5 years agoalways print FATAL and ERROR logmessages to STDERR apoc/ssl-verify
Matthias Hecker [Thu, 14 Nov 2013 13:41:16 +0000 (13:41 +0000)] 
always print FATAL and ERROR logmessages to STDERR

This adds a print to $stderr for log messages with the
level ERROR or FATAL. I did this because in the past errors
connecting to the server weren't immediately obvious but
rather hidden in the logfile. I think it should be right
in-your-face when the connection doesn't work.

It would probaply be better to extend Logger to print
to STDERR but this apparently requires monkeypatching ruby's
Logger. Anyhow I think my solution works for now.

5 years agoallow to verify ssl connections against a CA.
Matthias H [Wed, 18 Sep 2013 02:00:17 +0000 (04:00 +0200)] 
allow to verify ssl connections against a CA.

This adds three new configuration variables to configure
SSL verification against a CA.

server.ssl_verify: true if it should verify and disconnect
                   if it fails

server.ssl_ca_file: a CA file, is set to the systems CA
                    bundle by default (distri. dependent)

server.ssl_ca_path: alternativly path to a directory with
                    CA PEM files

I tested it and this seems no longer an issue with >= 1.9.3
https://www.braintreepayments.com/braintrust/sslsocket-verify_mode-doesnt-verify

5 years agodict: update oxford url
Giuseppe Bilotta [Mon, 11 Nov 2013 15:05:39 +0000 (16:05 +0100)] 
dict: update oxford url

5 years agoruby 2.0.0: better fix for the ThreadError
Matthias H [Wed, 18 Sep 2013 01:18:13 +0000 (03:18 +0200)] 
ruby 2.0.0: better fix for the ThreadError

I revisited my fix for the ThreadError in ruby 2.0.0
this doesn't use a queue for signals but just starts a
thread for each received signal, works much better for me.

It also fixes a bug in Bot#reconnect where the SystemExit
exception coming from quit is not handled correctly.

5 years agoruby 2.0.0: changes sigtrapping, fixes ThreadError
Matthias H [Wed, 4 Sep 2013 00:38:10 +0000 (02:38 +0200)] 
ruby 2.0.0: changes sigtrapping, fixes ThreadError

Ruby 2.0.0 crashes with "ThreadError: can't be called from trap context"
anytime a signal is received, because it tries to write a debug message
within the "trap context".
This changes signal handling so that signals are queued and processed
in the main loop.

More information: https://www.ruby-forum.com/topic/4411227

5 years agoruby 2.0.0: fix for changed @waiters in compat19
Matthias H [Wed, 4 Sep 2013 00:28:24 +0000 (02:28 +0200)] 
ruby 2.0.0: fix for changed @waiters in compat19

I don't really know what this is all about, but this
fixes a bug with the compat19 monkeypatching. @waiters
is now a Hash.

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=38109&view=revision

5 years agoSolve Socket vs URI IPv6 handling in Ruby
Giuseppe Bilotta [Sat, 2 Nov 2013 09:56:53 +0000 (10:56 +0100)] 
Solve Socket vs URI IPv6 handling in Ruby

5 years agoruby 1.9+: specify file encodings
Giuseppe Bilotta [Sat, 2 Nov 2013 09:32:22 +0000 (10:32 +0100)] 
ruby 1.9+: specify file encodings

5 years agourban: updated pattern
Matthias Hecker [Sun, 13 Oct 2013 22:44:43 +0000 (22:44 +0000)] 
urban: updated pattern

5 years agourban: urbandictionary.com changed markup, fixes regexp apoc/urban-fix
Matthias H [Mon, 19 Aug 2013 23:00:05 +0000 (01:00 +0200)] 
urban: urbandictionary.com changed markup, fixes regexp

5 years agoazgame: fix pattern to check search results apoc/azgame-url-fix
Matthias H [Mon, 19 Aug 2013 12:43:38 +0000 (14:43 +0200)] 
azgame: fix pattern to check search results

5 years agoazgame: catch scraping error
Matthias H [Sun, 18 Aug 2013 10:26:39 +0000 (12:26 +0200)] 
azgame: catch scraping error

5 years agofixes azgame: changed dictionary url
Matthias H [Sun, 18 Aug 2013 10:14:32 +0000 (12:14 +0200)] 
fixes azgame: changed dictionary url

5 years agodocument requirements of the twitter plugin apoc/new-twitter-api11
Matthias H [Fri, 19 Jul 2013 15:00:10 +0000 (17:00 +0200)] 
document requirements of the twitter plugin

5 years agoupdates the twitter plugin to use the new api 1.1
Matthias H [Fri, 19 Jul 2013 14:26:24 +0000 (16:26 +0200)] 
updates the twitter plugin to use the new api 1.1

The old 1.0 api is no longer available.
Its using oauth2 for application-only authentication and
oauth(1.0a) for user authentication.
Now requests and parses json (the new API doesn't support XML)

6 years agonote: dup the keys, not the registry gfax/master
Giuseppe Bilotta [Mon, 29 Apr 2013 05:37:28 +0000 (07:37 +0200)] 
note: dup the keys, not the registry

6 years agonote: if is more readale than unless here
Giuseppe Bilotta [Sun, 28 Apr 2013 06:54:03 +0000 (08:54 +0200)] 
note: if is more readale than unless here

6 years agonote: added date to timestamps gfax/note_plugin_fix
Jay Thomas [Sun, 28 Apr 2013 02:35:20 +0000 (22:35 -0400)] 
note: added date to timestamps

6 years agonote: added config option to privmsg all notes
Jay Thomas [Sun, 28 Apr 2013 02:21:19 +0000 (22:21 -0400)] 
note: added config option to privmsg all notes

6 years agonote: skip merging nil keys
Jay Thomas [Sat, 27 Apr 2013 06:27:19 +0000 (02:27 -0400)] 
note: skip merging nil keys

6 years agonote: upgrade old registry keys on initialize
Jay Thomas [Fri, 26 Apr 2013 01:15:58 +0000 (21:15 -0400)] 
note: upgrade old registry keys on initialize

6 years agonote: store nicks case-insensitive to avoid lost messages
Jay Thomas [Thu, 25 Apr 2013 03:24:29 +0000 (23:24 -0400)] 
note: store nicks case-insensitive to avoid lost messages

6 years agoFix parsing whois results so that we can get valid results for at least a great many...
Ryan Waldron [Thu, 18 Apr 2013 21:59:22 +0000 (16:59 -0500)] 
Fix parsing whois results so that we can get valid results for at least a great many queries

6 years agoFix multibyte char in rake task
Ryan Waldron [Thu, 18 Apr 2013 19:42:50 +0000 (14:42 -0500)] 
Fix multibyte char in rake task

6 years agoFix TCPSocket name
Ryan Waldron [Thu, 18 Apr 2013 19:42:12 +0000 (14:42 -0500)] 
Fix TCPSocket name

6 years agosearch: updated Wolfram Alpha method to comply with api
Jay Thomas [Thu, 25 Apr 2013 04:19:25 +0000 (00:19 -0400)] 
search: updated Wolfram Alpha method to comply with api

6 years agoutils: fixed secs_to_string output for one-element arrays
Jay Thomas [Thu, 25 Apr 2013 03:05:59 +0000 (23:05 -0400)] 
utils: fixed secs_to_string output for one-element arrays

6 years agoextends: updated shuffle method
Jay Thomas [Thu, 25 Apr 2013 03:01:56 +0000 (23:01 -0400)] 
extends: updated shuffle method

6 years agosearch: wolfram fix
Giuseppe Bilotta [Wed, 30 Jan 2013 07:24:03 +0000 (08:24 +0100)] 
search: wolfram fix

Ruby doesn't do C-style string concatenation. (My fault.)

6 years agorss: protect against nil field erebor/master
Giuseppe Bilotta [Mon, 21 Jan 2013 18:41:38 +0000 (19:41 +0100)] 
rss: protect against nil field

This happens when the filter tries to wrap a non-existing field, and in
custom filters it's probably a sign that the wrong field are being
accessed. It would probably be nicer to raise a warning about this, but
I'm too lazy to add that now.

6 years agoimdb: fix for the check of the final /
Giuseppe Bilotta [Wed, 19 Dec 2012 09:04:09 +0000 (10:04 +0100)] 
imdb: fix for the check of the final /

6 years agoimdb: plugin updates for recent site changes
Matthias H [Wed, 19 Dec 2012 08:02:29 +0000 (09:02 +0100)] 
imdb: plugin updates for recent site changes

6 years agobdb: message when wrong bdb module is loaded gitorious/master
Giuseppe Bilotta [Thu, 27 Sep 2012 10:23:36 +0000 (12:23 +0200)] 
bdb: message when wrong bdb module is loaded

6 years agolastfm: match latest API changes
Giuseppe Bilotta [Wed, 26 Sep 2012 20:28:25 +0000 (22:28 +0200)] 
lastfm: match latest API changes

Thanks Lite_

6 years agopoll: usual gettext frozen string issues
Giuseppe Bilotta [Fri, 21 Sep 2012 13:30:47 +0000 (15:30 +0200)] 
poll: usual gettext frozen string issues

6 years agopoll: handle privately-asked polls
Giuseppe Bilotta [Fri, 21 Sep 2012 12:55:42 +0000 (14:55 +0200)] 
poll: handle privately-asked polls

When a poll is asked in private, its channel will be empty. Make sure
that communication go in private again, and do mention that the poll was
asked in private in the poll info.

6 years agopoll: restart/close polls that were running
Giuseppe Bilotta [Fri, 21 Sep 2012 11:56:43 +0000 (13:56 +0200)] 
poll: restart/close polls that were running

On init, we need to see if there were polls running, and put them up
again (if there's still time) or announce their results (otherwise).

6 years agopoll: oopsie in the gettext string for poll status
Giuseppe Bilotta [Fri, 21 Sep 2012 11:39:41 +0000 (13:39 +0200)] 
poll: oopsie in the gettext string for poll status

6 years agosearch: improve ddg output with missing sources github/master
Giuseppe Bilotta [Fri, 14 Sep 2012 06:55:39 +0000 (08:55 +0200)] 
search: improve ddg output with missing sources

Sometimes duckduckgo fails to report the source/url of a definition or
abstract. Cope with this by removing the leading double dash when no
source information is provided

6 years agosearch: thread the new engines too
Giuseppe Bilotta [Fri, 14 Sep 2012 06:42:10 +0000 (08:42 +0200)] 
search: thread the new engines too

6 years agosearch: rbot-ize wolframalpha
Giuseppe Bilotta [Fri, 14 Sep 2012 06:41:24 +0000 (08:41 +0200)] 
search: rbot-ize wolframalpha

6 years agosearch: preliminary Wolfram Alpha support
Giuseppe Bilotta [Fri, 14 Sep 2012 06:35:24 +0000 (08:35 +0200)] 
search: preliminary Wolfram Alpha support

Thanks Lite_ again

6 years agosearch: some ddg reworking
Giuseppe Bilotta [Thu, 13 Sep 2012 08:33:52 +0000 (10:33 +0200)] 
search: some ddg reworking

Make it more similar to google, modulo obvious differences in behavior
and possibilities.

6 years agosearch: be more rbot-ish in ddg
Giuseppe Bilotta [Thu, 13 Sep 2012 07:27:19 +0000 (09:27 +0200)] 
search: be more rbot-ish in ddg

6 years agosearch: preliminary duckduckgo support
Giuseppe Bilotta [Thu, 13 Sep 2012 06:56:17 +0000 (08:56 +0200)] 
search: preliminary duckduckgo support

Thanks Lite_

6 years agochucknorris: typo
Giuseppe Bilotta [Mon, 10 Sep 2012 05:43:32 +0000 (07:43 +0200)] 
chucknorris: typo

6 years agosearch: fix google calc scraping
Giuseppe Bilotta [Mon, 10 Sep 2012 04:33:32 +0000 (06:33 +0200)] 
search: fix google calc scraping

6 years agomarkov: be more robust about flaky dbs
Giuseppe Bilotta [Fri, 31 Aug 2012 19:04:47 +0000 (21:04 +0200)] 
markov: be more robust about flaky dbs

Due to historical bugs, some database entries may have ended up being
serialized as strings. Recover from this by making them into arrays.

6 years agobdb: restore errors should be logged as errors
Giuseppe Bilotta [Fri, 31 Aug 2012 19:04:01 +0000 (21:04 +0200)] 
bdb: restore errors should be logged as errors

6 years agosearch: update for changes in google's html
Giuseppe Bilotta [Fri, 31 Aug 2012 18:33:40 +0000 (20:33 +0200)] 
search: update for changes in google's html

6 years agoUpdate gettext support
Giuseppe Bilotta [Sat, 14 Jul 2012 11:24:33 +0000 (13:24 +0200)] 
Update gettext support

Somewhere along the line between 2.0.0 and 2.2.1 gettext switched from
locale to lang for the hash key name. Support both.

6 years agotumblr: escape the non-range dash in the group regex
Giuseppe Bilotta [Thu, 21 Jun 2012 06:03:20 +0000 (08:03 +0200)] 
tumblr: escape the non-range dash in the group regex

7 years agosearch: fix google oblomov/master
Giuseppe Bilotta [Mon, 14 May 2012 11:59:39 +0000 (13:59 +0200)] 
search: fix google

7 years agoutils: support hex HTML entities
Giuseppe Bilotta [Mon, 14 May 2012 11:59:20 +0000 (13:59 +0200)] 
utils: support hex HTML entities

7 years agodb adaptors: nil internal variable when closing
Giuseppe Bilotta [Mon, 30 Apr 2012 19:50:02 +0000 (21:50 +0200)] 
db adaptors: nil internal variable when closing

This prevents subsequent spurious flushes from bombing out because of
closed databases.

7 years agoquakeauth: notify when identified
Giuseppe Bilotta [Mon, 30 Apr 2012 12:00:43 +0000 (14:00 +0200)] 
quakeauth: notify when identified

This ensures that joining after identification (config setting
irc.join_after_identify) works correctly with quake auth too.

7 years agoweather: use proper units text when using config option
Giuseppe Bilotta [Mon, 26 Mar 2012 16:22:38 +0000 (18:22 +0200)] 
weather: use proper units text when using config option

Previously, if units was false (no units specified), wu_units would
become "_false" instead of "_<whatever was in the config value>".

7 years agoForecast plugin patch
Giuseppe Bilotta [Tue, 20 Mar 2012 11:13:17 +0000 (12:13 +0100)] 
Forecast plugin patch

"I've updated the forecast plugin, the two API URLs used had been updated and
the NOAA SOAP API method call now requires 6 arguments instead of the 5 it was
passing previously." (Ticket #89)

7 years agoRubyGems obsoleted *and* b0rked all_load_path, try to work around it
Giuseppe Bilotta [Sun, 4 Mar 2012 20:16:46 +0000 (21:16 +0100)] 
RubyGems obsoleted *and* b0rked all_load_path, try to work around it

7 years agohttputil: work (sub-par) without iconv
Giuseppe Bilotta [Sat, 3 Mar 2012 18:04:34 +0000 (19:04 +0100)] 
httputil: work (sub-par) without iconv

7 years agoDocument iconv dependency
Giuseppe Bilotta [Sat, 3 Mar 2012 17:32:23 +0000 (18:32 +0100)] 
Document iconv dependency

7 years agomath: ruby wants leading 0s to floating points numbers
Giuseppe Bilotta [Wed, 1 Feb 2012 14:24:31 +0000 (15:24 +0100)] 
math: ruby wants leading 0s to floating points numbers

7 years agosearch: fix gcalc
Giuseppe Bilotta [Wed, 25 Jan 2012 08:44:40 +0000 (09:44 +0100)] 
search: fix gcalc

Google changed their layout again. To be a little more future-proof,
split the html into as many <br/> sections as there are, and pick the
first one that contains the literal string ' = ' if there is one.

7 years agogreed: prevent players from going twice in a row
Okasu [Sat, 21 Jan 2012 07:33:15 +0000 (02:33 -0500)] 
greed: prevent players from going twice in a row

7 years agogreed: refactor and prepare for more complete play
Giuseppe Bilotta [Mon, 26 Dec 2011 09:57:54 +0000 (10:57 +0100)] 
greed: refactor and prepare for more complete play

The score is now saved in a look-up table, that also allows more
detailed output when showing the score. Also, the dice rolling
potentially allows for a different number of dices to be rolled (e.g. if
some are held).

Take the opportunity to also gettextize outuput.

7 years agogreed: stylistic changes
Giuseppe Bilotta [Mon, 26 Dec 2011 09:12:31 +0000 (10:12 +0100)] 
greed: stylistic changes

Sort dices when rolling and separate values with spaces.

7 years agoAdd a Greed dice game.
Okasu [Mon, 26 Dec 2011 08:53:16 +0000 (03:53 -0500)] 
Add a Greed dice game.

7 years agoGooglefight plugin fix
Okasu [Sun, 25 Dec 2011 22:13:30 +0000 (17:13 -0500)] 
Googlefight plugin fix

7 years agotwitter: preliminary status htmlinfo filter
Giuseppe Bilotta [Wed, 21 Dec 2011 22:29:35 +0000 (23:29 +0100)] 
twitter: preliminary status htmlinfo filter

This allows the link info published by URL in the new /#!/ format to be
more meaningful than the warning about missing JavaScript support caused
by the new "web 2.0" Twitter site.

7 years agotumblr: fix 'tumblr configure' regexps
Giuseppe Bilotta [Wed, 21 Dec 2011 09:11:29 +0000 (10:11 +0100)] 
tumblr: fix 'tumblr configure' regexps

The way they were, specifying channel, email, password and group caused
the password to be merged with the email and the group to become the
password.

7 years agoImprove first par detection without hpricot
Giuseppe Bilotta [Thu, 8 Dec 2011 15:20:43 +0000 (16:20 +0100)] 
Improve first par detection without hpricot

7 years agomarkov: mention learn in summary help
Giuseppe Bilotta [Wed, 7 Dec 2011 08:12:09 +0000 (09:12 +0100)] 
markov: mention learn in summary help

7 years agomarkov: document 'learn from <file>'
Giuseppe Bilotta [Sun, 4 Dec 2011 05:25:53 +0000 (06:25 +0100)] 
markov: document 'learn from <file>'

7 years agodict: oxford fix from AndrewNTH
Giuseppe Bilotta [Mon, 24 Oct 2011 08:49:22 +0000 (10:49 +0200)] 
dict: oxford fix from AndrewNTH

See tracker issue #79

7 years agoExit for good when getting a DBFatal error
Giuseppe Bilotta [Mon, 24 Oct 2011 08:44:09 +0000 (10:44 +0200)] 
Exit for good when getting a DBFatal error

7 years agoimdb plugin: again fixes outdated ratings pattern
Matthias -apoc- Hecker [Mon, 26 Sep 2011 12:44:25 +0000 (14:44 +0200)] 
imdb plugin: again fixes outdated ratings pattern

7 years agoUNO: prevent player from replaying a misplayed card
Giuseppe Bilotta [Thu, 22 Sep 2011 20:42:02 +0000 (22:42 +0200)] 
UNO: prevent player from replaying a misplayed card

7 years agoBetter handling of akills and other form of disconnections
Giuseppe Bilotta [Thu, 15 Sep 2011 09:44:07 +0000 (11:44 +0200)] 
Better handling of akills and other form of disconnections

7 years agoyoutube: not all urls have v= as first CGI param
Giuseppe Bilotta [Thu, 15 Sep 2011 09:40:44 +0000 (11:40 +0200)] 
youtube: not all urls have v= as first CGI param

7 years agoAn unparseable message from the server is a ServerError
Giuseppe Bilotta [Tue, 30 Aug 2011 05:33:18 +0000 (07:33 +0200)] 
An unparseable message from the server is a ServerError

7 years agobasics: UI command to send NOTICEs
Giuseppe Bilotta [Sun, 28 Aug 2011 21:33:16 +0000 (23:33 +0200)] 
basics: UI command to send NOTICEs

7 years agofix for imdb, changed patterns for ratings&genre
Matthias -apoc- Hecker [Sun, 14 Aug 2011 11:50:02 +0000 (13:50 +0200)] 
fix for imdb, changed patterns for ratings&genre