docbot.git
13 years ago- fix typos in init_statistics()
Andreas Scherbaum [Mon, 25 Jun 2012 21:29:56 +0000 (23:29 +0200)]
- fix typos in init_statistics()

13 years agoMerge remote-tracking branch 'origin/v2' into v2
Andreas Scherbaum [Mon, 25 Jun 2012 21:28:19 +0000 (23:28 +0200)]
Merge remote-tracking branch 'origin/v2' into v2

13 years ago- implement "key" and "url" commands
Andreas Scherbaum [Mon, 25 Jun 2012 21:28:09 +0000 (23:28 +0200)]
- implement "key" and "url" commands

13 years agoRemove obsolete dependency
Hubert depesz Lubaczewski [Sun, 24 Jun 2012 13:28:01 +0000 (15:28 +0200)]
Remove obsolete dependency

Getopt::Mixed was obsolete since at least March 2007. Use standard, core
perl module Getopt::Long instead.

In passing, add long option for debugging irc traffic, for consistency,
and reformat help output.

13 years agoSupport SSL Irc connections
Hubert depesz Lubaczewski [Sun, 24 Jun 2012 13:12:49 +0000 (15:12 +0200)]
Support SSL Irc connections

In "irc" settings simply add "ssl: 1" for SSL connections.

13 years agoRemove data error - non-unique nicks
Hubert depesz Lubaczewski [Sun, 24 Jun 2012 13:01:07 +0000 (15:01 +0200)]
Remove data error - non-unique nicks

Nicks in the table are supposed to be unique. Removed redundant data,
database creation now works.

13 years agofix a typo
Hubert depesz Lubaczewski [Sun, 24 Jun 2012 12:59:08 +0000 (14:59 +0200)]
fix a typo

13 years agoPassword is not obligatory
Hubert depesz Lubaczewski [Sun, 24 Jun 2012 12:54:27 +0000 (14:54 +0200)]
Password is not obligatory

We can connect using password stored in ~/.pgpass, or with password from
PGPASSWORD, or PostgreSQL can be configured to use "trust" or
"peer/ident" authentication schemata. In all these cases password
configuration in config file is not necessary.

13 years ago- add todo list
Andreas Scherbaum [Thu, 21 Jun 2012 21:34:37 +0000 (23:34 +0200)]
- add todo list

13 years ago- add demo sql file
Andreas Scherbaum [Thu, 21 Jun 2012 21:30:57 +0000 (23:30 +0200)]
- add demo sql file

13 years ago- clean up database class a bit
Andreas Scherbaum [Thu, 21 Jun 2012 20:52:39 +0000 (22:52 +0200)]
- clean up database class a bit

13 years ago- verify required tables at startup
Andreas Scherbaum [Thu, 21 Jun 2012 20:51:41 +0000 (22:51 +0200)]
- verify required tables at startup

13 years ago- implement help
Andreas Scherbaum [Thu, 21 Jun 2012 20:10:08 +0000 (22:10 +0200)]
- implement help

13 years ago- use env to search for perl executable
Andreas Scherbaum [Thu, 21 Jun 2012 19:48:21 +0000 (21:48 +0200)]
- use env to search for perl executable
- request by depesz

13 years ago- enhance "lost" command
Andreas Scherbaum [Wed, 13 Jun 2012 21:34:15 +0000 (23:34 +0200)]
- enhance "lost" command

13 years ago- allow setting the channel language on ?join
Andreas Scherbaum [Wed, 13 Jun 2012 21:32:31 +0000 (23:32 +0200)]
- allow setting the channel language on ?join

13 years ago- add functions to set config options
Andreas Scherbaum [Wed, 13 Jun 2012 21:31:28 +0000 (23:31 +0200)]
- add functions to set config options

13 years ago- add "lost" command
Andreas Scherbaum [Wed, 13 Jun 2012 16:19:23 +0000 (18:19 +0200)]
- add "lost" command

13 years ago- fix wrong raiseerror setting, which aborted the bot instead of returning an error
Andreas Scherbaum [Wed, 13 Jun 2012 16:18:18 +0000 (18:18 +0200)]
- fix wrong raiseerror setting, which aborted the bot instead of returning an error

13 years ago- improve "say" command
Andreas Scherbaum [Wed, 13 Jun 2012 12:13:12 +0000 (14:13 +0200)]
- improve "say" command

13 years ago- implement "join" and "leave" commands
Andreas Scherbaum [Wed, 13 Jun 2012 12:09:57 +0000 (14:09 +0200)]
- implement "join" and "leave" commands

13 years ago- implement "say" command
Andreas Scherbaum [Wed, 13 Jun 2012 10:24:36 +0000 (12:24 +0200)]
- implement "say" command

13 years ago- add "forget" functionality
Andreas Scherbaum [Mon, 11 Jun 2012 21:00:55 +0000 (23:00 +0200)]
- add "forget" functionality

13 years ago- add "learn" function
Andreas Scherbaum [Fri, 8 Jun 2012 21:04:36 +0000 (23:04 +0200)]
- add "learn" function
- add translations for "learn"

13 years ago- add begin(), commit() and rollback() functions
Andreas Scherbaum [Fri, 8 Jun 2012 21:03:28 +0000 (23:03 +0200)]
- add begin(), commit() and rollback() functions

13 years ago- add functionality to verify admins and operators
Andreas Scherbaum [Sun, 27 May 2012 21:04:38 +0000 (23:04 +0200)]
- add functionality to verify admins and operators
- is_nick_allowed_operator_command()
- is_nick_allowed_admin_command()

13 years ago- add help for 'search'
Andreas Scherbaum [Fri, 25 May 2012 21:55:12 +0000 (23:55 +0200)]
- add help for 'search'

13 years ago- fix some warnings
Andreas Scherbaum [Fri, 25 May 2012 21:44:09 +0000 (23:44 +0200)]
- fix some warnings

13 years ago- identify commands in private messages
Andreas Scherbaum [Fri, 25 May 2012 21:41:52 +0000 (23:41 +0200)]
- identify commands in private messages

13 years ago- fix a typo which I missed earlier
Andreas Scherbaum [Fri, 25 May 2012 21:41:05 +0000 (23:41 +0200)]
- fix a typo which I missed earlier

13 years ago- proper identify channel names, don't rely on '#'
Andreas Scherbaum [Fri, 25 May 2012 21:18:47 +0000 (23:18 +0200)]
- proper identify channel names, don't rely on '#'

13 years ago- add basic 'help' command handler
Andreas Scherbaum [Fri, 25 May 2012 20:58:43 +0000 (22:58 +0200)]
- add basic 'help' command handler

13 years ago- add documentation regarding adding new commands
Andreas Scherbaum [Fri, 25 May 2012 19:10:41 +0000 (21:10 +0200)]
- add documentation regarding adding new commands

13 years ago- add on_irc_registered()
Andreas Scherbaum [Fri, 25 May 2012 10:21:00 +0000 (12:21 +0200)]
- add on_irc_registered()
- remove some unneeded debug messages

13 years ago- verify if commandchannel is joined, before posting something
Andreas Scherbaum [Sat, 19 May 2012 21:32:43 +0000 (23:32 +0200)]
- verify if commandchannel is joined, before posting something

13 years ago- add "wallchan" command
Andreas Scherbaum [Sat, 19 May 2012 21:01:52 +0000 (23:01 +0200)]
- add "wallchan" command
- add translations for "wallchan" command

13 years ago- add "wallchan" basics
Andreas Scherbaum [Sat, 19 May 2012 20:41:17 +0000 (22:41 +0200)]
- add "wallchan" basics

13 years ago- add a default for maximum number of results
Andreas 'ads' Scherbaum [Fri, 9 Mar 2012 20:52:32 +0000 (21:52 +0100)]
- add a default for maximum number of results

13 years ago- only use search website if the url is configured
Andreas 'ads' Scherbaum [Fri, 9 Mar 2012 20:45:10 +0000 (21:45 +0100)]
- only use search website if the url is configured

13 years ago- decrease debugging output in find_nick()
Andreas Scherbaum [Wed, 29 Feb 2012 15:10:29 +0000 (16:10 +0100)]
- decrease debugging output in find_nick()
- clarify some debugging messages

13 years ago- add search functionality
Andreas Scherbaum [Mon, 27 Feb 2012 13:54:08 +0000 (14:54 +0100)]
- add search functionality

13 years ago- remove blank line
Andreas Scherbaum [Mon, 27 Feb 2012 13:53:23 +0000 (14:53 +0100)]
- remove blank line

13 years ago- add new module
Andreas Scherbaum [Mon, 27 Feb 2012 13:42:37 +0000 (14:42 +0100)]
- add new module

13 years ago- add more configuration checks (search:maxresults and search:maxwrap)
Andreas Scherbaum [Mon, 27 Feb 2012 13:29:34 +0000 (14:29 +0100)]
- add more configuration checks (search:maxresults and search:maxwrap)

13 years ago- fix spacing
Andreas Scherbaum [Mon, 27 Feb 2012 13:08:23 +0000 (14:08 +0100)]
- fix spacing

13 years ago- fix bug in timeout handling
Andreas Scherbaum [Mon, 27 Feb 2012 09:25:53 +0000 (10:25 +0100)]
- fix bug in timeout handling

13 years ago- add more debug info to on_message()
Andreas Scherbaum [Mon, 27 Feb 2012 02:29:17 +0000 (03:29 +0100)]
- add more debug info to on_message()

13 years ago- add internal nickname cache, used to identify if users for redirecting a search...
Andreas Scherbaum [Mon, 27 Feb 2012 02:23:02 +0000 (03:23 +0100)]
- add internal nickname cache, used to identify if users for redirecting a search are in the channel

13 years ago- add parameters to query()
Andreas Scherbaum [Mon, 27 Feb 2012 00:44:36 +0000 (01:44 +0100)]
- add parameters to query()

13 years ago- add database functionality
Andreas Scherbaum [Mon, 27 Feb 2012 00:01:24 +0000 (01:01 +0100)]
- add database functionality
- almost full rewrite of db.pm
- open database connection in docbot
- test connection and configuration, add db ping

13 years ago- add new config helper function
Andreas Scherbaum [Mon, 27 Feb 2012 00:00:15 +0000 (01:00 +0100)]
- add new config helper function

13 years ago- document function
Andreas Scherbaum [Sun, 26 Feb 2012 23:59:56 +0000 (00:59 +0100)]
- document function

13 years ago- cleanup linebreaks
Andreas Scherbaum [Sun, 26 Feb 2012 22:11:15 +0000 (23:11 +0100)]
- cleanup linebreaks

13 years ago- fix statistic message
Andreas Scherbaum [Sun, 26 Feb 2012 22:09:17 +0000 (23:09 +0100)]
- fix statistic message

13 years ago- clarify statistic output
Andreas Scherbaum [Sun, 26 Feb 2012 21:55:23 +0000 (22:55 +0100)]
- clarify statistic output

13 years ago- more statistics
Andreas Scherbaum [Sun, 26 Feb 2012 21:53:43 +0000 (22:53 +0100)]
- more statistics

13 years ago- add more debugging messages
Andreas Scherbaum [Sun, 26 Feb 2012 21:48:20 +0000 (22:48 +0100)]
- add more debugging messages

13 years ago- add periodic maintenance
Andreas Scherbaum [Sun, 26 Feb 2012 21:47:17 +0000 (22:47 +0100)]
- add periodic maintenance

13 years ago- make "nickname in use" message more verbose: add session
Andreas Scherbaum [Sun, 26 Feb 2012 13:46:06 +0000 (14:46 +0100)]
- make "nickname in use" message more verbose: add session

13 years ago- change spacing
Andreas Scherbaum [Fri, 24 Feb 2012 14:38:34 +0000 (15:38 +0100)]
- change spacing

13 years ago- remove $pg_docbot reference
Andreas 'ads' Scherbaum [Tue, 21 Feb 2012 12:15:28 +0000 (13:15 +0100)]
- remove $pg_docbot reference

13 years ago- fix error in catching irc notices
Andreas Scherbaum [Fri, 3 Feb 2012 07:48:38 +0000 (08:48 +0100)]
- fix error in catching irc notices

13 years ago- catch irc notice messages and output them to the command channel
Andreas Scherbaum [Fri, 3 Feb 2012 00:28:06 +0000 (01:28 +0100)]
- catch irc notice messages and output them to the command channel

13 years ago- do not print socket errors into command channel - that's just flood
Andreas Scherbaum [Thu, 2 Feb 2012 23:59:11 +0000 (00:59 +0100)]
- do not print socket errors into command channel - that's just flood

13 years ago- add ctcp handling (using POE::Component::IRC::Plugin::CTCP)
Andreas Scherbaum [Thu, 2 Feb 2012 00:08:59 +0000 (01:08 +0100)]
- add ctcp handling (using POE::Component::IRC::Plugin::CTCP)

13 years ago- fix logic error in previous commit: outgoing traffic should not mark session activity
Andreas Scherbaum [Thu, 2 Feb 2012 00:01:57 +0000 (01:01 +0100)]
- fix logic error in previous commit: outgoing traffic should not mark session activity

13 years ago- mark session activity by using "raw_irc" and "raw_irc_out"
Andreas Scherbaum [Thu, 2 Feb 2012 00:00:48 +0000 (01:00 +0100)]
- mark session activity by using "raw_irc" and "raw_irc_out"

13 years ago- make sure the watchdog is not called repeatedly in a short time frame
Andreas Scherbaum [Sun, 29 Jan 2012 14:18:19 +0000 (15:18 +0100)]
- make sure the watchdog is not called repeatedly in a short time frame

13 years ago- add and implement handle_command_status()
Andreas Scherbaum [Sun, 22 Jan 2012 12:36:40 +0000 (13:36 +0100)]
- add and implement handle_command_status()

13 years ago- fix spacing
Andreas Scherbaum [Sun, 22 Jan 2012 12:36:21 +0000 (13:36 +0100)]
- fix spacing

13 years ago- add missing function parameter to handle_command()
Andreas Scherbaum [Sun, 22 Jan 2012 12:25:41 +0000 (13:25 +0100)]
- add missing function parameter to handle_command()

13 years ago- add first time format function
Andreas Scherbaum [Sun, 22 Jan 2012 12:25:13 +0000 (13:25 +0100)]
- add first time format function

13 years ago- silence two more irc events
Andreas Scherbaum [Sun, 22 Jan 2012 12:24:12 +0000 (13:24 +0100)]
- silence two more irc events

13 years ago- add per session statistics
Andreas Scherbaum [Sun, 22 Jan 2012 00:35:01 +0000 (01:35 +0100)]
- add per session statistics

13 years ago- add statistics
Andreas Scherbaum [Sun, 22 Jan 2012 00:33:06 +0000 (01:33 +0100)]
- add statistics

13 years ago- add command handler
Andreas Scherbaum [Sat, 21 Jan 2012 23:32:07 +0000 (00:32 +0100)]
- add command handler

13 years ago- change if() elsif() construct into a Switch construct
Andreas Scherbaum [Sat, 21 Jan 2012 23:31:17 +0000 (00:31 +0100)]
- change if() elsif() construct into a Switch construct

13 years ago- command handling
Andreas Scherbaum [Sat, 21 Jan 2012 15:47:19 +0000 (16:47 +0100)]
- command handling
- implement basic authentication for operator and admin commands

13 years ago- ignore "irc_nick" events in debugging
Andreas Scherbaum [Sat, 21 Jan 2012 15:46:54 +0000 (16:46 +0100)]
- ignore "irc_nick" events in debugging

13 years ago- remove debugging
Andreas Scherbaum [Fri, 20 Jan 2012 21:41:02 +0000 (22:41 +0100)]
- remove debugging

13 years ago- change simple output into debugging message
Andreas Scherbaum [Fri, 20 Jan 2012 21:27:01 +0000 (22:27 +0100)]
- change simple output into debugging message

13 years ago- enhance _default() debugging function
Andreas Scherbaum [Fri, 20 Jan 2012 21:24:25 +0000 (22:24 +0100)]
- enhance _default() debugging function
- get rid of many unnecessary output

13 years ago- add function to write to a channel
Andreas Scherbaum [Fri, 20 Jan 2012 21:23:03 +0000 (22:23 +0100)]
- add function to write to a channel
- add function to write to the command channel
- add function to identify the session for a joined channel

13 years ago- remove debugging
Andreas Scherbaum [Fri, 20 Jan 2012 21:13:24 +0000 (22:13 +0100)]
- remove debugging

13 years ago- fix debugging: really output a join message only if the session joins the channel
Andreas Scherbaum [Fri, 20 Jan 2012 20:52:32 +0000 (21:52 +0100)]
- fix debugging: really output a join message only if the session joins the channel

13 years ago- track channels for each session
Andreas Scherbaum [Fri, 20 Jan 2012 14:44:27 +0000 (15:44 +0100)]
- track channels for each session
- remove unnesessary channel join code, directly use configured channel list
- add list of channels for session 1

13 years ago- fix bug: don't delete channels from config after joining them
Andreas Scherbaum [Tue, 17 Jan 2012 01:05:11 +0000 (02:05 +0100)]
- fix bug: don't delete channels from config after joining them

13 years ago- use internal config functions
Andreas Scherbaum [Tue, 17 Jan 2012 01:00:15 +0000 (02:00 +0100)]
- use internal config functions

13 years ago- add translations
Andreas Scherbaum [Tue, 17 Jan 2012 00:48:01 +0000 (01:48 +0100)]
- add translations
- add per channel translations
- add translated error messages
- add command handling

13 years ago- add new helper function: return all second level config keys
Andreas Scherbaum [Mon, 16 Jan 2012 12:21:08 +0000 (13:21 +0100)]
- add new helper function: return all second level config keys
- config_get_keys2()

13 years ago- fix wrong return values
Andreas Scherbaum [Mon, 16 Jan 2012 02:47:30 +0000 (03:47 +0100)]
- fix wrong return values

13 years ago- almost complete rewrite
Andreas Scherbaum [Sun, 15 Jan 2012 22:40:34 +0000 (23:40 +0100)]
- almost complete rewrite
- connect to irc works
- multiple session works
- configuration works

14 years ago- initial release master v1
Andreas Scherbaum [Tue, 19 Oct 2010 21:04:06 +0000 (23:04 +0200)]
- initial release