furrycat/catbot.git
9 years agoAdded commands to manage news feeds.
CMDR furrycat [Sun, 23 Oct 2016 11:39:39 +0000 (12:39 +0100)]
Added commands to manage news feeds.

9 years agoAbstract table entry creation.
CMDR furrycat [Sun, 23 Oct 2016 11:39:15 +0000 (12:39 +0100)]
Abstract table entry creation.

9 years agoFormatting.
CMDR furrycat [Sun, 23 Oct 2016 11:38:23 +0000 (12:38 +0100)]
Formatting.

9 years agoFeeds can be temporarily disabled.
CMDR furrycat [Sun, 23 Oct 2016 11:38:08 +0000 (12:38 +0100)]
Feeds can be temporarily disabled.

9 years agoHandle posting multiple feeds to the same channel.
CMDR furrycat [Sun, 23 Oct 2016 10:27:58 +0000 (11:27 +0100)]
Handle posting multiple feeds to the same channel.

9 years agoFixed indices for announcements and feeds.
CMDR furrycat [Sun, 23 Oct 2016 10:26:36 +0000 (11:26 +0100)]
Fixed indices for announcements and feeds.

9 years agoDon't overwrite permissions that are already correct.
CMDR furrycat [Sun, 23 Oct 2016 09:54:24 +0000 (10:54 +0100)]
Don't overwrite permissions that are already correct.

9 years agoAdded hacky permissions comparision.
CMDR furrycat [Sun, 23 Oct 2016 09:51:26 +0000 (10:51 +0100)]
Added hacky permissions comparision.

Discord API 0.13.0 will let us compare permissions directly.  For now we
have to check each bit individually.

9 years agoGet RSS feed configuration from the database.
CMDR furrycat [Sat, 22 Oct 2016 09:37:30 +0000 (10:37 +0100)]
Get RSS feed configuration from the database.

9 years agoRemoved obsolete orders variable.
CMDR furrycat [Sat, 22 Oct 2016 09:08:45 +0000 (10:08 +0100)]
Removed obsolete orders variable.

9 years agoAbstract db announcement methods.
CMDR furrycat [Fri, 21 Oct 2016 15:19:06 +0000 (16:19 +0100)]
Abstract db announcement methods.

9 years agoWe were still raising after not posting.
CMDR furrycat [Fri, 21 Oct 2016 15:24:46 +0000 (16:24 +0100)]
We were still raising after not posting.

9 years agoLog exceptions we would have passed.
CMDR furrycat [Fri, 21 Oct 2016 15:07:47 +0000 (16:07 +0100)]
Log exceptions we would have passed.

9 years agoFixed not updating last_spoke when we should have.
CMDR furrycat [Fri, 21 Oct 2016 14:59:29 +0000 (15:59 +0100)]
Fixed not updating last_spoke when we should have.

9 years agoDebug queries properly.
CMDR furrycat [Fri, 21 Oct 2016 07:21:26 +0000 (08:21 +0100)]
Debug queries properly.

9 years agoFixed announcement "at" time.
CMDR furrycat [Thu, 20 Oct 2016 19:55:17 +0000 (20:55 +0100)]
Fixed announcement "at" time.

9 years agoFormat every in announce show.
CMDR furrycat [Wed, 19 Oct 2016 21:53:02 +0000 (22:53 +0100)]
Format every in announce show.

9 years agoHandle common error putting commas in distance.
CMDR furrycat [Mon, 17 Oct 2016 07:22:20 +0000 (08:22 +0100)]
Handle common error putting commas in distance.

9 years agoBlingify Buckyball Racing Club avatars.
CMDR furrycat [Sun, 16 Oct 2016 10:06:39 +0000 (11:06 +0100)]
Blingify Buckyball Racing Club avatars.

9 years agoUse case-insensitive match rather than lowercase commands. Breaks bling and others.
CMDR furrycat [Sun, 16 Oct 2016 09:26:54 +0000 (10:26 +0100)]
Use case-insensitive match rather than lowercase commands.  Breaks bling and others.

9 years agoAllow editing announcements.
CMDR furrycat [Wed, 12 Oct 2016 21:24:16 +0000 (22:24 +0100)]
Allow editing announcements.

9 years agoStart date must be equal to or before end date.
CMDR furrycat [Wed, 12 Oct 2016 20:46:43 +0000 (21:46 +0100)]
Start date must be equal to or before end date.

9 years agoRegression parsing message text.
CMDR furrycat [Wed, 12 Oct 2016 20:41:57 +0000 (21:41 +0100)]
Regression parsing message text.

9 years agoHighlight announcement ID.
CMDR furrycat [Wed, 12 Oct 2016 20:34:49 +0000 (21:34 +0100)]
Highlight announcement ID.

9 years agoParse channel by name.
CMDR furrycat [Wed, 12 Oct 2016 20:27:11 +0000 (21:27 +0100)]
Parse channel by name.

9 years agoAnyone can id.
CMDR furrycat [Wed, 12 Oct 2016 20:21:26 +0000 (21:21 +0100)]
Anyone can id.

9 years agoSilly parsing errors.
CMDR furrycat [Wed, 12 Oct 2016 20:15:00 +0000 (21:15 +0100)]
Silly parsing errors.

9 years agoGeneral help.
CMDR furrycat [Wed, 12 Oct 2016 19:53:19 +0000 (20:53 +0100)]
General help.

9 years agoIgnore case.
CMDR furrycat [Wed, 12 Oct 2016 19:24:40 +0000 (20:24 +0100)]
Ignore case.

9 years agoSummarise voice-only announcements.
CMDR furrycat [Wed, 12 Oct 2016 18:15:35 +0000 (19:15 +0100)]
Summarise voice-only announcements.

9 years agoFixed TypeError showing announcement.
CMDR furrycat [Wed, 12 Oct 2016 18:06:39 +0000 (19:06 +0100)]
Fixed TypeError showing announcement.

9 years agoPurge old announcements.
CMDR furrycat [Wed, 12 Oct 2016 18:04:06 +0000 (19:04 +0100)]
Purge old announcements.

9 years agoList announcement details.
CMDR furrycat [Wed, 12 Oct 2016 18:03:56 +0000 (19:03 +0100)]
List announcement details.

9 years agoLog new announcement ID.
CMDR furrycat [Mon, 10 Oct 2016 10:22:03 +0000 (11:22 +0100)]
Log new announcement ID.

9 years agoHandle URLs in announce create.
CMDR furrycat [Mon, 10 Oct 2016 10:21:51 +0000 (11:21 +0100)]
Handle URLs in announce create.

9 years agoHandle newlines in announce create.
CMDR furrycat [Mon, 10 Oct 2016 10:18:27 +0000 (11:18 +0100)]
Handle newlines in announce create.

9 years agoTidy setting announcement states.
CMDR furrycat [Fri, 7 Oct 2016 15:35:42 +0000 (16:35 +0100)]
Tidy setting announcement states.

9 years agoWake up to play voice-only announcements.
CMDR furrycat [Fri, 7 Oct 2016 15:00:44 +0000 (16:00 +0100)]
Wake up to play voice-only announcements.

9 years agoMore scheduling fixes.
CMDR furrycat [Fri, 7 Oct 2016 14:50:55 +0000 (15:50 +0100)]
More scheduling fixes.

9 years agoReally ASAP.
CMDR furrycat [Fri, 7 Oct 2016 14:35:26 +0000 (15:35 +0100)]
Really ASAP.

9 years agoFormatting.
CMDR furrycat [Fri, 7 Oct 2016 14:31:35 +0000 (15:31 +0100)]
Formatting.

9 years agoDedup and improve identification.
CMDR furrycat [Fri, 7 Oct 2016 14:26:13 +0000 (15:26 +0100)]
Dedup and improve identification.

9 years agoWhole bunch of (probably pointless) debug messages.
CMDR furrycat [Fri, 7 Oct 2016 14:18:19 +0000 (15:18 +0100)]
Whole bunch of (probably pointless) debug messages.

9 years agoFix permissions for managing announcements.
CMDR furrycat [Fri, 7 Oct 2016 14:08:16 +0000 (15:08 +0100)]
Fix permissions for managing announcements.

9 years agoPip requirements.
CMDR furrycat [Fri, 7 Oct 2016 13:58:06 +0000 (14:58 +0100)]
Pip requirements.

9 years agoShow help for announcements.
CMDR furrycat [Fri, 7 Oct 2016 11:06:50 +0000 (12:06 +0100)]
Show help for announcements.

9 years agoDon't list other users' private announcements.
CMDR furrycat [Fri, 7 Oct 2016 10:34:34 +0000 (11:34 +0100)]
Don't list other users' private announcements.

9 years agoPrivate announcement logic.
CMDR furrycat [Fri, 7 Oct 2016 10:26:35 +0000 (11:26 +0100)]
Private announcement logic.

9 years agoHandle case in commands.
CMDR furrycat [Fri, 7 Oct 2016 10:26:05 +0000 (11:26 +0100)]
Handle case in commands.

9 years agoASAP overrides schedule.
CMDR furrycat [Fri, 7 Oct 2016 10:25:08 +0000 (11:25 +0100)]
ASAP overrides schedule.

9 years agoParsing fixes when creating announcements.
CMDR furrycat [Fri, 7 Oct 2016 09:39:55 +0000 (10:39 +0100)]
Parsing fixes when creating announcements.

9 years agoTry to keep to announcement schedule even if we miss an iteration.
CMDR furrycat [Fri, 7 Oct 2016 09:12:04 +0000 (10:12 +0100)]
Try to keep to announcement schedule even if we miss an iteration.

9 years agoRecognise days, hours and minutes in interval.
CMDR furrycat [Fri, 7 Oct 2016 09:11:25 +0000 (10:11 +0100)]
Recognise days, hours and minutes in interval.

9 years agoAlias to create announcement at time.
CMDR furrycat [Fri, 7 Oct 2016 09:10:49 +0000 (10:10 +0100)]
Alias to create announcement at time.

9 years agoRemoved old give_order() method.
CMDR furrycat [Fri, 7 Oct 2016 09:10:13 +0000 (10:10 +0100)]
Removed old give_order() method.

9 years agoFix parsing date when creating announcement.
CMDR furrycat [Fri, 7 Oct 2016 09:09:48 +0000 (10:09 +0100)]
Fix parsing date when creating announcement.

9 years agoImply private channel if telling me.
CMDR furrycat [Fri, 7 Oct 2016 09:08:35 +0000 (10:08 +0100)]
Imply private channel if telling me.

9 years agoEnsure we log announcement ID.
CMDR furrycat [Fri, 7 Oct 2016 09:08:10 +0000 (10:08 +0100)]
Ensure we log announcement ID.

9 years agoTime command.
CMDR furrycat [Fri, 7 Oct 2016 09:07:16 +0000 (10:07 +0100)]
Time command.

9 years agoEnsure we process all pending announcements.
CMDR furrycat [Fri, 7 Oct 2016 06:31:10 +0000 (07:31 +0100)]
Ensure we process all pending announcements.

9 years agoLog that we finished playing a sound.
CMDR furrycat [Thu, 6 Oct 2016 16:20:57 +0000 (17:20 +0100)]
Log that we finished playing a sound.

9 years agoWake for announcements every minute regardless of each announcement interval.
CMDR furrycat [Thu, 6 Oct 2016 16:20:06 +0000 (17:20 +0100)]
Wake for announcements every minute regardless of each announcement interval.

9 years agoAllow create voice only announcement without specifying fake channel.
CMDR furrycat [Thu, 6 Oct 2016 15:58:21 +0000 (16:58 +0100)]
Allow create voice only announcement without specifying fake channel.

9 years agoRole and announcement fixes.
CMDR furrycat [Thu, 6 Oct 2016 15:55:59 +0000 (16:55 +0100)]
Role and announcement fixes.

9 years agoUsers can create announcements.
CMDR furrycat [Thu, 6 Oct 2016 11:44:49 +0000 (12:44 +0100)]
Users can create announcements.

9 years agoTimestamp logs.
CMDR furrycat [Thu, 6 Oct 2016 10:56:07 +0000 (11:56 +0100)]
Timestamp logs.

9 years agoDon't spin up further scheduling threads on reconnect.
CMDR furrycat [Thu, 6 Oct 2016 10:46:35 +0000 (11:46 +0100)]
Don't spin up further scheduling threads on reconnect.

9 years agoHighest role on server can manage any announcement.
CMDR furrycat [Wed, 5 Oct 2016 20:48:22 +0000 (21:48 +0100)]
Highest role on server can manage any announcement.

9 years agoAnnouncements can be paused, resumed or scheduled ASAP.
CMDR furrycat [Wed, 5 Oct 2016 20:37:12 +0000 (21:37 +0100)]
Announcements can be paused, resumed or scheduled ASAP.

9 years agoSupport voice only announcements.
CMDR furrycat [Wed, 5 Oct 2016 11:22:13 +0000 (12:22 +0100)]
Support voice only announcements.

9 years agoEnforce U in UUID.
CMDR furrycat [Wed, 5 Oct 2016 11:09:20 +0000 (12:09 +0100)]
Enforce U in UUID.

9 years agoFix open/close DB.
CMDR furrycat [Wed, 5 Oct 2016 10:53:13 +0000 (11:53 +0100)]
Fix open/close DB.

9 years agoTypo.
CMDR furrycat [Wed, 5 Oct 2016 10:51:57 +0000 (11:51 +0100)]
Typo.

9 years agoFormat shown announcement in bold.
CMDR furrycat [Wed, 5 Oct 2016 10:51:09 +0000 (11:51 +0100)]
Format shown announcement in bold.

9 years agoReopen DB for each operation.
CMDR furrycat [Wed, 5 Oct 2016 10:49:45 +0000 (11:49 +0100)]
Reopen DB for each operation.

9 years agoWe can't /me.
CMDR furrycat [Tue, 4 Oct 2016 13:32:01 +0000 (14:32 +0100)]
We can't /me.

9 years agoSet db log level.
CMDR furrycat [Tue, 4 Oct 2016 13:31:48 +0000 (14:31 +0100)]
Set db log level.

9 years agoUsers can delete announcements.
CMDR furrycat [Tue, 4 Oct 2016 13:21:42 +0000 (14:21 +0100)]
Users can delete announcements.

9 years agoList and show announcements.
CMDR furrycat [Tue, 4 Oct 2016 13:01:15 +0000 (14:01 +0100)]
List and show announcements.

9 years agoSplit long messages across multiple say() invocations.
CMDR furrycat [Tue, 4 Oct 2016 13:00:54 +0000 (14:00 +0100)]
Split long messages across multiple say() invocations.

9 years agoid command to print details of users, roles and channels.
CMDR furrycat [Tue, 4 Oct 2016 10:16:42 +0000 (11:16 +0100)]
id command to print details of users, roles and channels.

9 years agoAnnounce if start and end dates are the same, so a one-time scheduled announcement...
CMDR furrycat [Tue, 4 Oct 2016 09:20:17 +0000 (10:20 +0100)]
Announce if start and end dates are the same, so a one-time scheduled announcement is possible.

9 years agoAssign probability to each announcement.
CMDR furrycat [Tue, 4 Oct 2016 09:19:27 +0000 (10:19 +0100)]
Assign probability to each announcement.

9 years agoAvoid TypeError.
CMDR furrycat [Mon, 3 Oct 2016 21:19:11 +0000 (22:19 +0100)]
Avoid TypeError.

9 years agoAnnouncements in database.
CMDR furrycat [Mon, 3 Oct 2016 21:12:43 +0000 (22:12 +0100)]
Announcements in database.

9 years agoReturn message after successful post.
CMDR furrycat [Mon, 3 Oct 2016 21:11:40 +0000 (22:11 +0100)]
Return message after successful post.

9 years agoDB tidyup.
CMDR furrycat [Mon, 3 Oct 2016 21:09:42 +0000 (22:09 +0100)]
DB tidyup.

9 years agoTypo.
CMDR furrycat [Mon, 3 Oct 2016 18:01:03 +0000 (19:01 +0100)]
Typo.

9 years agoRemember idle status and avatar in sqlite.
CMDR furrycat [Mon, 3 Oct 2016 15:20:23 +0000 (16:20 +0100)]
Remember idle status and avatar in sqlite.

9 years agoMore thread safety.
CMDR furrycat [Mon, 3 Oct 2016 06:46:17 +0000 (07:46 +0100)]
More thread safety.

9 years agoSeparate bot logging from Discord logging.
CMDR furrycat [Sun, 2 Oct 2016 21:20:52 +0000 (22:20 +0100)]
Separate bot logging from Discord logging.

9 years agoDefault avatars.
CMDR furrycat [Sun, 2 Oct 2016 10:01:57 +0000 (11:01 +0100)]
Default avatars.

9 years agoRespond to pats.
CMDR furrycat [Sun, 2 Oct 2016 10:01:38 +0000 (11:01 +0100)]
Respond to pats.

9 years agoInverted logic.
CMDR furrycat [Sat, 1 Oct 2016 19:12:56 +0000 (20:12 +0100)]
Inverted logic.

9 years agoTypo.
CMDR furrycat [Fri, 30 Sep 2016 18:30:21 +0000 (19:30 +0100)]
Typo.

9 years agoMore responses.
CMDR furrycat [Fri, 30 Sep 2016 12:38:14 +0000 (13:38 +0100)]
More responses.

9 years agoIssue orders periodically.
CMDR furrycat [Fri, 30 Sep 2016 11:56:27 +0000 (12:56 +0100)]
Issue orders periodically.

9 years agoHandle GalNet direct from Frontier servers.
CMDR furrycat [Fri, 30 Sep 2016 11:10:26 +0000 (12:10 +0100)]
Handle GalNet direct from Frontier servers.

9 years agoPer-bot configuration.
CMDR furrycat [Fri, 30 Sep 2016 11:09:57 +0000 (12:09 +0100)]
Per-bot configuration.

9 years agoDon't complain if we don't have a channel to join.
CMDR furrycat [Fri, 30 Sep 2016 07:40:14 +0000 (08:40 +0100)]
Don't complain if we don't have a channel to join.