rbot
10 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

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

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

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

10 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

10 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!

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

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

10 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+

10 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+

10 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

10 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.

10 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.

10 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

10 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

10 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

10 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

10 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.

10 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

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

10 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.

10 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

10 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

10 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

10 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

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

10 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

10 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

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

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

10 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

10 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)

10 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

10 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

10 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

10 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

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

10 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

10 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

10 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

10 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

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

10 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

10 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

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

11 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.)

11 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.

11 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 /

11 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

11 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

11 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_

11 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

11 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.

11 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).

11 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

11 years agosearch: improve ddg output with missing sources
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

11 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

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

11 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

11 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.

11 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

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

Thanks Lite_

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

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

11 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.

11 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

11 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

11 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.

11 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

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

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

11 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.

11 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.

12 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>".

12 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)

12 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

12 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

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

12 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

12 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.

12 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

12 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.

12 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.

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

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

12 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.

12 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.

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agoFix TC db close on cleanup
Giuseppe Bilotta [Mon, 11 Jul 2011 15:26:00 +0000 (17:26 +0200)] 
Fix TC db close on cleanup

When closing the TC db on cleanup, we didn't remove it from the
environment. Override the #close() method to achieve that.