furrycat/catbot.git
5 years agoFix dirname/basename in /catbot.
CMDR furrycat [Wed, 11 Nov 2020 11:02:31 +0000 (12:02 +0100)]
Fix dirname/basename in /catbot.

5 years agoFix voice announcements.
CMDR furrycat [Wed, 11 Nov 2020 10:45:14 +0000 (11:45 +0100)]
Fix voice announcements.

5 years agoHackaround for global snowflake.
CMDR furrycat [Wed, 11 Nov 2020 09:56:45 +0000 (09:56 +0000)]
Hackaround for global snowflake.

5 years agoHackaround for private snowflake.
CMDR furrycat [Wed, 11 Nov 2020 09:52:39 +0000 (09:52 +0000)]
Hackaround for private snowflake.

5 years agoFix missing shard information.
CMDR furrycat [Wed, 11 Nov 2020 09:47:52 +0000 (09:47 +0000)]
Fix missing shard information.

5 years agoUse discord.py 1.5.1.
CMDR furrycat [Wed, 11 Nov 2020 08:26:30 +0000 (09:26 +0100)]
Use discord.py 1.5.1.

Application code and all plugins migrated to the new API.
Startup now respects CATBOT_SHARD_ID and CATBOT_SHARD_COUNT environment
variables.
Typing context managers can be shared between message send invocations.

5 years agoRevert "Hackaround for channel overwrites API change."
CMDR furrycat [Fri, 30 Oct 2020 17:40:39 +0000 (17:40 +0000)]
Revert "Hackaround for channel overwrites API change."

This reverts commit 8134fe3d4a0b9a071a38158305a6d7853b303ded.

5 years agoFix maybe_say() destination logging.
CMDR furrycat [Fri, 30 Oct 2020 17:40:08 +0000 (17:40 +0000)]
Fix maybe_say() destination logging.

5 years agoUse discord.py-unofficial.
CMDR furrycat [Fri, 30 Oct 2020 17:39:40 +0000 (17:39 +0000)]
Use discord.py-unofficial.

6 years agoHackaround for channel overwrites API change.
CMDR furrycat [Sat, 25 Jul 2020 15:13:52 +0000 (16:13 +0100)]
Hackaround for channel overwrites API change.

6 years agoMore verbose faction track.
CMDR furrycat [Mon, 6 Apr 2020 10:27:53 +0000 (11:27 +0100)]
More verbose faction track.

6 years agoFixed help for faction/system show.
CMDR furrycat [Mon, 6 Apr 2020 10:16:54 +0000 (11:16 +0100)]
Fixed help for faction/system show.

6 years agoDescribe newsflash and summary.
CMDR furrycat [Mon, 6 Apr 2020 10:15:12 +0000 (11:15 +0100)]
Describe newsflash and summary.

6 years agoFixed smiley_cat.
CMDR furrycat [Wed, 4 Mar 2020 17:21:27 +0000 (17:21 +0000)]
Fixed smiley_cat.

6 years agoHandle mentions with <@!id>.
CMDR furrycat [Fri, 14 Feb 2020 15:36:00 +0000 (15:36 +0000)]
Handle mentions with <@!id>.

7 years agoHandle failed send in all cases.
CMDR furrycat [Thu, 25 Jul 2019 13:58:00 +0000 (14:58 +0100)]
Handle failed send in all cases.

7 years agoFixed PrivateChannel member list.
CMDR furrycat [Thu, 25 Jul 2019 13:30:12 +0000 (14:30 +0100)]
Fixed PrivateChannel member list.

7 years agoUse v0.16.7 API.
CMDR furrycat [Tue, 23 Jul 2019 08:13:42 +0000 (09:13 +0100)]
Use v0.16.7 API.

7 years agoFixed recipient with legacy SDK.
CMDR furrycat [Tue, 23 Jul 2019 08:13:15 +0000 (09:13 +0100)]
Fixed recipient with legacy SDK.

7 years agoLog exception when a message can't be sent.
CMDR furrycat [Tue, 23 Jul 2019 07:43:53 +0000 (08:43 +0100)]
Log exception when a message can't be sent.

7 years agoTypo and tidyup.
CMDR furrycat [Mon, 13 May 2019 21:23:42 +0000 (22:23 +0100)]
Typo and tidyup.

7 years agoAllow anyone to list managed roles.
CMDR furrycat [Mon, 13 May 2019 21:13:46 +0000 (22:13 +0100)]
Allow anyone to list managed roles.

7 years agoAllow server administrators to manage roles on their own server.
CMDR furrycat [Thu, 10 Jan 2019 14:01:39 +0000 (14:01 +0000)]
Allow server administrators to manage roles on their own server.

7 years agoTypo.
CMDR furrycat [Thu, 10 Jan 2019 13:14:56 +0000 (13:14 +0000)]
Typo.

7 years agoAllow inclusive upper and lower role bounds for managed roles.
CMDR furrycat [Wed, 9 Jan 2019 14:19:45 +0000 (14:19 +0000)]
Allow inclusive upper and lower role bounds for managed roles.

7 years agoList managed roles.
CMDR furrycat [Wed, 9 Jan 2019 14:09:12 +0000 (14:09 +0000)]
List managed roles.

7 years agoMore easily assign roles with spaces.
CMDR furrycat [Wed, 9 Jan 2019 10:35:45 +0000 (10:35 +0000)]
More easily assign roles with spaces.

7 years agoEnsure admin plugin has access to self.plugins after plugin reload.
CMDR furrycat [Mon, 24 Dec 2018 10:21:50 +0000 (10:21 +0000)]
Ensure admin plugin has access to self.plugins after plugin reload.

7 years agoList tracked factions uniquely.
CMDR furrycat [Mon, 24 Dec 2018 10:17:37 +0000 (10:17 +0000)]
List tracked factions uniquely.

When logging that we are ignoring faction information because there is
no tracked faction present in the data, we list the factions we do
track.

However if a faction is reported to multiple channels it was appearing
in the tracked list multiple times.

7 years agoAllow toggling debug level of specific modules or plugins.
CMDR furrycat [Mon, 24 Dec 2018 10:13:29 +0000 (10:13 +0000)]
Allow toggling debug level of specific modules or plugins.

7 years agoFull support for multiple faction states.
CMDR furrycat [Sun, 23 Dec 2018 17:07:14 +0000 (17:07 +0000)]
Full support for multiple faction states.

7 years agoParse (only first) state from multi-state faction data.
CMDR furrycat [Sun, 23 Dec 2018 16:00:30 +0000 (16:00 +0000)]
Parse (only first) state from multi-state faction data.

7 years agoAdded Civil Liberty, Incursion and Pirate Attack states.
CMDR furrycat [Sun, 23 Dec 2018 12:32:24 +0000 (12:32 +0000)]
Added Civil Liberty, Incursion and Pirate Attack states.

7 years agoPlugin to prune old members.
CMDR furrycat [Sun, 9 Dec 2018 11:43:05 +0000 (11:43 +0000)]
Plugin to prune old members.

7 years agoBe more verbose when bad heading arguments are supplied.
CMDR furrycat [Fri, 9 Nov 2018 08:43:17 +0000 (08:43 +0000)]
Be more verbose when bad heading arguments are supplied.

7 years agoBearings were inverted.
CMDR furrycat [Fri, 9 Nov 2018 08:35:02 +0000 (08:35 +0000)]
Bearings were inverted.

7 years agoTypo in facts:handle_help().
CMDR furrycat [Wed, 10 Oct 2018 08:33:20 +0000 (09:33 +0100)]
Typo in facts:handle_help().

7 years agoTidy loading facts and haikus.
CMDR furrycat [Wed, 10 Oct 2018 08:33:01 +0000 (09:33 +0100)]
Tidy loading facts and haikus.

7 years agoCatbot knows some facts and haikus
Coletrain [Mon, 8 Oct 2018 01:00:46 +0000 (20:00 -0500)]
Catbot knows some facts and haikus

8 years agoMigrate rng plugin to Python 3.5.
CMDR furrycat [Fri, 1 Jun 2018 07:19:22 +0000 (08:19 +0100)]
Migrate rng plugin to Python 3.5.

8 years agoAllow granting a user rights to issue shutdown.
CMDR furrycat [Mon, 14 May 2018 20:36:43 +0000 (21:36 +0100)]
Allow granting a user rights to issue shutdown.

8 years agoFixed smiley_cat.
CMDR furrycat [Sat, 31 Mar 2018 19:01:12 +0000 (20:01 +0100)]
Fixed smiley_cat.

8 years agoFixed role parsing.
CMDR furrycat [Mon, 12 Feb 2018 10:17:42 +0000 (10:17 +0000)]
Fixed role parsing.

8 years agoFixed parse_role of role mention.
CMDR furrycat [Mon, 12 Feb 2018 10:11:24 +0000 (10:11 +0000)]
Fixed parse_role of role mention.

8 years agoPlugin to manage roles.
CMDR furrycat [Sun, 11 Feb 2018 11:20:04 +0000 (11:20 +0000)]
Plugin to manage roles.

8 years agoEnsure we set the client when reloading a plugin which failed to parse on startup.
CMDR furrycat [Sun, 11 Feb 2018 09:33:46 +0000 (09:33 +0000)]
Ensure we set the client when reloading a plugin which failed to parse on startup.

8 years agoAdded bot.parse_role.
CMDR furrycat [Sun, 11 Feb 2018 08:49:50 +0000 (08:49 +0000)]
Added bot.parse_role.

8 years agoCrop image AFTER compositing and masking.
CMDR furrycat [Mon, 5 Feb 2018 17:11:49 +0000 (17:11 +0000)]
Crop image AFTER compositing and masking.

8 years agoRevert "Fixed dimensions of Newton's gambit bling."
CMDR furrycat [Mon, 5 Feb 2018 16:59:17 +0000 (16:59 +0000)]
Revert "Fixed dimensions of Newton's gambit bling."

This reverts commit 560be7d6b0ac6ac76a5b1f43ae8e6621b7f60f6b.

8 years agoFixed dimensions of Newton's gambit bling.
CMDR furrycat [Mon, 5 Feb 2018 16:54:49 +0000 (16:54 +0000)]
Fixed dimensions of Newton's gambit bling.

8 years agoMore reactions.
CMDR furrycat [Thu, 18 Jan 2018 13:44:18 +0000 (13:44 +0000)]
More reactions.

8 years ago=^-^=
CMDR furrycat [Thu, 18 Jan 2018 13:39:38 +0000 (13:39 +0000)]
=^-^=

8 years agoMaybe respond to meow.
CMDR furrycat [Thu, 18 Jan 2018 10:30:37 +0000 (10:30 +0000)]
Maybe respond to meow.

8 years agoNew avatars.
CMDR furrycat [Wed, 17 Jan 2018 22:53:38 +0000 (22:53 +0000)]
New avatars.

8 years agoExplicit masks for Delta and Bucky.
CMDR furrycat [Thu, 11 Jan 2018 15:55:00 +0000 (15:55 +0000)]
Explicit masks for Delta and Bucky.

8 years agoBling quietly.
CMDR furrycat [Wed, 10 Jan 2018 19:29:49 +0000 (19:29 +0000)]
Bling quietly.

8 years agoMask for Newton's Gambit.
CMDR furrycat [Wed, 10 Jan 2018 16:14:43 +0000 (16:14 +0000)]
Mask for Newton's Gambit.

8 years agoUse separate mask image if available.
CMDR furrycat [Wed, 10 Jan 2018 16:13:59 +0000 (16:13 +0000)]
Use separate mask image if available.

8 years agoNewton's Gambit logos for bling.
CMDR furrycat [Wed, 10 Jan 2018 14:53:23 +0000 (14:53 +0000)]
Newton's Gambit logos for bling.

8 years agoEnsure the blinged image doesn't protrude outside the mask.
CMDR furrycat [Wed, 10 Jan 2018 14:53:09 +0000 (14:53 +0000)]
Ensure the blinged image doesn't protrude outside the mask.

8 years agoFixed bug in shared user check.
CMDR furrycat [Tue, 5 Dec 2017 09:48:18 +0000 (09:48 +0000)]
Fixed bug in shared user check.

8 years agoCheck for shared Member.
CMDR furrycat [Tue, 5 Dec 2017 09:45:00 +0000 (09:45 +0000)]
Check for shared Member.

8 years agoShow non shared IDs if --admin flag is user by admin.
CMDR furrycat [Tue, 5 Dec 2017 09:42:08 +0000 (09:42 +0000)]
Show non shared IDs if --admin flag is user by admin.

8 years agoRestrict ID results to shared servers.
CMDR furrycat [Tue, 5 Dec 2017 09:38:12 +0000 (09:38 +0000)]
Restrict ID results to shared servers.

8 years agoEnhancements for id.
CMDR furrycat [Tue, 5 Dec 2017 09:30:12 +0000 (09:30 +0000)]
Enhancements for id.

Show member join date.
Fixed "id --members" not showing all members.

8 years agoMoved EDTS stuff to a plugin.
CMDR furrycat [Wed, 15 Nov 2017 10:38:55 +0000 (10:38 +0000)]
Moved EDTS stuff to a plugin.

8 years agoTypo.
CMDR furrycat [Thu, 26 Oct 2017 09:46:00 +0000 (10:46 +0100)]
Typo.

8 years agoIrish girl voice.
CMDR furrycat [Mon, 23 Oct 2017 09:58:53 +0000 (10:58 +0100)]
Irish girl voice.

8 years agoText-to-speech.
CMDR furrycat [Mon, 23 Oct 2017 09:17:12 +0000 (10:17 +0100)]
Text-to-speech.

8 years agoConfigure announcement reposting.
CMDR furrycat [Fri, 20 Oct 2017 14:01:41 +0000 (15:01 +0100)]
Configure announcement reposting.

Use the "repost" argument when creating or editing a message to set how
far back in the channel history we look for a previous posting of the
announcement.  If "repost" is 0 or if "always" is used, we skip the
check entirely.

The default history size is still 100 messages.

8 years agoTrack all pending and recovering states.
CMDR furrycat [Fri, 13 Oct 2017 12:03:42 +0000 (13:03 +0100)]
Track all pending and recovering states.

8 years agoDefeat 'dictionary changed size during iteration' error.
CMDR furrycat [Wed, 11 Oct 2017 14:36:53 +0000 (15:36 +0100)]
Defeat 'dictionary changed size during iteration' error.

8 years agoAnnotate summary graphs.
CMDR furrycat [Wed, 11 Oct 2017 11:01:41 +0000 (12:01 +0100)]
Annotate  summary graphs.

8 years agoFixed trying to await a non-coroutine.
CMDR furrycat [Wed, 11 Oct 2017 10:55:43 +0000 (11:55 +0100)]
Fixed trying to await a non-coroutine.

8 years agoTypo.
CMDR furrycat [Wed, 11 Oct 2017 10:49:40 +0000 (11:49 +0100)]
Typo.

8 years agoFixed updating level after plugins reload.
CMDR furrycat [Wed, 11 Oct 2017 10:48:04 +0000 (11:48 +0100)]
Fixed updating level after plugins reload.

8 years agoFixed crash trying to report on a system with reports disabled.
CMDR furrycat [Wed, 11 Oct 2017 10:44:46 +0000 (11:44 +0100)]
Fixed crash trying to report on a system with reports disabled.

8 years agoFlash-only can be private.
CMDR furrycat [Wed, 11 Oct 2017 10:19:11 +0000 (11:19 +0100)]
Flash-only can be private.

8 years agoUpdate correct table.
CMDR furrycat [Wed, 11 Oct 2017 10:14:50 +0000 (11:14 +0100)]
Update correct table.

8 years agoShow summary graph, by default every 30 days.
CMDR furrycat [Wed, 11 Oct 2017 09:52:47 +0000 (10:52 +0100)]
Show summary graph, by default every 30 days.

8 years agoFaction summary channel is optional if a news flash channel is configured.
CMDR furrycat [Wed, 11 Oct 2017 08:29:17 +0000 (09:29 +0100)]
Faction summary channel is optional if a news flash channel is configured.

8 years agoExtract caught exception.
CMDR furrycat [Wed, 11 Oct 2017 09:53:13 +0000 (10:53 +0100)]
Extract caught exception.

8 years agoMore conservative typing.
CMDR furrycat [Sun, 1 Oct 2017 14:15:30 +0000 (15:15 +0100)]
More conservative typing.

8 years agouse method_cache() instead of iterating over plugins().
CMDR furrycat [Wed, 27 Sep 2017 09:54:54 +0000 (10:54 +0100)]
use method_cache() instead of iterating over plugins().

8 years agoDon't graph 'from 1970-01-01'.
CMDR furrycat [Mon, 25 Sep 2017 10:50:44 +0000 (11:50 +0100)]
Don't graph 'from 1970-01-01'.

8 years agoShow last month's influence by default.
CMDR furrycat [Mon, 25 Sep 2017 10:45:22 +0000 (11:45 +0100)]
Show last month's influence by default.

Use 'full' to specify all history, or 'from' a specific date.

8 years agoAllow date range in faction history.
CMDR furrycat [Mon, 25 Sep 2017 10:28:03 +0000 (11:28 +0100)]
Allow date range in faction history.

8 years agoUse parse_iso8601() for dates in Announcement.
CMDR furrycat [Mon, 25 Sep 2017 10:27:44 +0000 (11:27 +0100)]
Use parse_iso8601() for dates in Announcement.

8 years agoPure datetime parse_iso8601().
CMDR furrycat [Mon, 25 Sep 2017 10:26:51 +0000 (11:26 +0100)]
Pure datetime parse_iso8601().

8 years agoFixed call to bot.set_avatar().
CMDR furrycat [Thu, 21 Sep 2017 10:04:14 +0000 (11:04 +0100)]
Fixed call to bot.set_avatar().

8 years agoRequire a minute between typing.
CMDR furrycat [Fri, 1 Sep 2017 07:01:19 +0000 (08:01 +0100)]
Require a minute between typing.

8 years agoMore conservative typing.
CMDR furrycat [Thu, 31 Aug 2017 17:48:38 +0000 (18:48 +0100)]
More conservative typing.

8 years agoDon't print pending War, War when two factions closest in influence are pending War.
CMDR furrycat [Thu, 31 Aug 2017 12:44:28 +0000 (13:44 +0100)]
Don't print pending War, War when two factions closest in influence are pending War.

8 years agoMore sensible debug message when no systems/factions are tracked.
CMDR furrycat [Wed, 30 Aug 2017 12:45:31 +0000 (13:45 +0100)]
More sensible debug message when no systems/factions are tracked.

8 years agoPlugin to heckle people for starting typing.
CMDR furrycat [Wed, 30 Aug 2017 12:45:07 +0000 (13:45 +0100)]
Plugin to heckle people for starting typing.

8 years agoAdded on_typing() and non_command_message() methods.
CMDR furrycat [Wed, 30 Aug 2017 12:41:48 +0000 (13:41 +0100)]
Added on_typing() and non_command_message() methods.

Plugins can implement on_typing() to react to a client typing.
Plugins can implement non_command_message() to handle a message that
mentions the bot but was not recognised as a command.

8 years agoSet log plugin level after refresh.
CMDR furrycat [Wed, 30 Aug 2017 12:41:19 +0000 (13:41 +0100)]
Set log plugin level after refresh.

8 years agoDon't use shlex to split arguments for announcements.
CMDR furrycat [Tue, 29 Aug 2017 15:14:41 +0000 (16:14 +0100)]
Don't use shlex to split arguments for announcements.

The message part of an announcement may contain apostrophes or other
stuff that confuses shlex.split(), which operates on the whole command.

8 years agoDon't claim a tracked system's influence data is stale when a faction retreated.
CMDR furrycat [Sat, 26 Aug 2017 18:04:53 +0000 (19:04 +0100)]
Don't claim a tracked system's influence data is stale when a faction retreated.

8 years agoOnly announce the same system once in a channel.
CMDR furrycat [Wed, 23 Aug 2017 06:50:59 +0000 (07:50 +0100)]
Only announce the same system once in a channel.