Ske
5d3cb7b6bf
Add basic stats endpoint
2018-11-30 20:45:04 +01:00
Ske
4337430823
Check for an existing webhook made by the bot first.
...
Otherwise, it'd create a new one and in case of failures or database corruptions,
you'd hit the webhook limit quickly.
This was a feature pre-rewrite but got lost in translation.
2018-11-30 20:39:10 +01:00
Ske
10746ae807
System/member set command rework, should be more user friendly now
2018-11-23 21:55:47 +01:00
Ske
8e504fa879
Refactor error handling slightly and don't use embeds for basic status/error messages. Closes #28 .
2018-11-15 21:05:13 +01:00
Ske
869f686bd5
Fix proxied messages with no system tag
2018-11-13 17:27:47 +01:00
Ske
3e5357d27f
Whoops pt. 2
2018-11-13 14:01:24 +01:00
Ske
b4c45a7722
Whoops
2018-11-13 13:18:41 +01:00
Ske
6da7436aed
Add commands for API token retrieval/refreshing
2018-11-13 12:34:19 +01:00
Ske
a72a7c3de9
Merge branch 'rewrite-port'
2018-11-08 16:43:09 +01:00
Ske
f4512fc7e9
Various bug fixes
2018-11-08 16:25:58 +01:00
Ske
3fca071c1d
Count all-blank strings as empty for the purposes of proxy validation
2018-11-08 15:47:21 +01:00
Ske
5900c2aa23
Fix the backup scripts (cronjob didn't fire for a month...)
2018-11-07 21:16:34 +01:00
Ske
ce319408a6
Add playing message with help info
2018-10-30 20:25:06 +01:00
Ske
99657ae07d
Fix Tupperware importing
2018-10-27 23:47:28 +02:00
Ske
899183f26d
Fix special case where webhook is deleted by user
2018-10-27 23:34:50 +02:00
Ske
a4449ceaae
Remove commented-out old code
2018-10-27 23:31:45 +02:00
Ske
58d8927380
Message and error logging, various bugfixes
2018-10-27 23:30:12 +02:00
Ske
ea62ede21b
Basic command functionality
2018-10-27 22:12:10 +02:00
Ske
4217d5d5d8
Basic proxy functionality fixed
2018-10-27 22:00:41 +02:00
Ske
c8caeadec4
Change discord.py dependency to rewrite branch pinned at 860d6a9a
2018-10-27 21:03:35 +02:00
Ske
7636a48d14
Sanitize @everyone and @here in proxied messages
2018-10-23 01:14:33 +02:00
Ske
7174979fd1
Add a missing dependency
2018-10-20 21:09:14 +02:00
Ske
b4358a649c
Allow commands by mentioning the bot. Closes #22
2018-10-11 12:58:08 +02:00
Ske
4a48e43d13
Add basic switch model and migrate fronter command
2018-10-11 12:54:40 +02:00
Ske
31322f3fea
Add basic backup shell scripts
2018-10-11 11:54:04 +02:00
Ske
a866b7cb4c
Remove Grafana configuration
2018-10-11 11:24:23 +02:00
Ske
2f728e09aa
Remove unsupported Influx/Grafana analytics code
2018-10-11 11:23:20 +02:00
Ske and GitHub
c15eddcfa1
Fix missing name in getting started example
2018-10-10 19:39:35 +02:00
Ske
d45f285a98
Log sender ID to log channel too
2018-09-23 17:15:54 +02:00
Ske
739e4342a6
Split long member lists into multiple embed fields
2018-09-22 19:35:13 +02:00
Ske
fb57d676b8
Delete duplicate requirements.txt
2018-09-16 19:52:04 +02:00
Ske
88fb2c6c17
Improve date format explanation
2018-09-16 19:44:13 +02:00
Ske
f8235370c7
Refactor more db methods into the models
2018-09-16 19:43:13 +02:00
Ske
f4f312fd9a
Show error and wait on database connection failure
2018-09-16 19:37:51 +02:00
Ske
6951c15167
Move system/member card embeds to embeds.py
2018-09-16 19:36:50 +02:00
Ske
345e8baab6
Minor nitpicks in the fronthistory command
2018-09-16 19:20:08 +02:00
Ske
292528ae47
Don't create the content row either
2018-09-16 14:13:52 +02:00
Ske
ca662bd502
Stop logging message contents in the database for privacy reasons. Please remove the 'content' column in the 'messages' table:
2018-09-16 13:59:37 +02:00
Ske
cae394b4e8
Refactor member actions into members.py
2018-09-16 13:46:22 +02:00
Ske
05cf04df03
Fix webhook stat reporting
2018-09-15 15:12:51 +02:00
Ske
4becc8a4e9
Add a link to the message itself in logged messages. Closes #17
2018-09-15 15:07:24 +02:00
Ske
fd67945660
Catch exceptions in message handler and not command dispatch. Closes #18
2018-09-15 14:52:24 +02:00
Ske
22b206c562
Clarify getting started instructions
2018-09-14 20:45:26 +02:00
Ske
2fbb3adb08
Fix API
2018-09-09 22:41:21 +02:00
Ske
8692a0dbbf
Add a Discord invite link to the README
2018-09-09 21:09:31 +02:00
Ske
e95d8a4e0d
Refactor error handling for system commands
2018-09-09 20:50:53 +02:00
Ske
a079db8be0
Move various system functionality to system.py
2018-09-09 20:38:57 +02:00
Ske
49b4e4c1ef
Move System and Member to separate files
2018-09-09 19:53:32 +02:00
Ske
138c0b7f8c
Refactor action confirmations
2018-09-08 13:48:18 +02:00
Ske
073d534419
Fix quote parsing
2018-09-08 00:36:00 +02:00
Ske
b4bc1f1263
Change various timeouts to 5 minutes instead of 1
2018-09-07 23:21:12 +02:00
Ske
a9a9fb018e
Fix Tupperware importing
2018-09-07 23:03:05 +02:00
Ske
8848a71047
Disable avatar previews for now
2018-09-07 21:33:27 +02:00
Ske
9fe0c0a95a
Add special case for errors in DMs
2018-09-07 21:30:47 +02:00
Ske
52be946404
Add basic README.md. Closes #8
2018-09-07 18:57:18 +02:00
Ske
946688c451
Make sure to pass LOG_CHANNEL environment variable through Docker
2018-09-07 18:47:36 +02:00
Ske
7b99a89bb9
Add error logging to a channel. Closes #11 .
2018-09-07 18:17:30 +02:00
Ske
a2cbf20add
Add an error when using emojis in member names or system tags. Closes #13
2018-09-07 17:57:12 +02:00
Ske
5930f490ce
Add character limit to descriptions. Closes #14
2018-09-07 17:40:19 +02:00
Ske
16173e428b
Add message count to member card. Closes #12
2018-09-07 17:39:01 +02:00
Ske
f067485e88
Major command handling refactor
2018-09-07 17:34:38 +02:00
Ske
0869f94cdf
Remove syntax error exception, add help pages to some errors
2018-09-02 19:41:14 +02:00
Ske
16fc976971
Extract help fragments to variables
2018-09-02 19:29:41 +02:00
Ske
2ae8fd5f34
Remove CommandError, return error embeds instead
2018-09-01 19:41:35 +02:00
Ske
99e2fad2b2
Make InfluxDB connection options configurable
2018-09-01 19:16:42 +02:00
Ske
a130e2215a
Move stats stuff into its own class. Closes #1
2018-09-01 19:12:33 +02:00
Ske
cd0af5321c
Ensure deletion confirmation is case-insensitive
2018-08-23 15:53:52 +02:00
Ske
780bc8a512
Read database connection parameters from environment
2018-08-22 19:50:32 +02:00
Ske
3d2d6b0ea6
Added front percent breakdown command
2018-08-02 11:10:09 +02:00
Ske
944f0093a9
Add basic HTTP API
2018-08-02 00:36:50 +02:00
Ske
e831ef5921
Fixed account linking when creating new systems on import
2018-07-31 01:50:11 +02:00
Ske
18dff93edd
Fix Tupperware importing sometimes using the wrong bot and not registering messages
2018-07-30 21:06:59 +02:00
Ske
14f8eb9d66
Disable system checking for various commands
2018-07-27 07:29:10 +02:00
Ske
2806feb7dc
Add suggestion to 'No system registered' message
2018-07-25 23:20:08 +02:00
Ske
0fbe957b9c
Add exception handler logging more info to command wrapper
2018-07-25 23:10:58 +02:00
Ske
034f7816e4
Remember to await webhook stat submission
2018-07-25 23:07:38 +02:00
Ske
e5612a7b41
Fix errors when querying system fronters/history when you don't have a system yourself
2018-07-25 23:05:15 +02:00
Ske
a6708cb788
Set logging level to INFO
2018-07-25 11:56:37 +02:00
Ske
d81dadefa4
Remember to send webhook stats to Influx post-refactor
2018-07-24 22:55:41 +02:00
Ske
8936029dc8
Massive refactor of pretty much everything in the bot
2018-07-24 22:49:52 +02:00
Ske
086fa84b4b
Fixed wrong field alias in query
2018-07-21 01:32:15 +02:00
Ske
136b08b597
Fix the command invocation graph
2018-07-21 01:29:25 +02:00
Ske
861dc78796
Add more cool panels to the Grafana dashboard
2018-07-21 01:22:51 +02:00
Ske
81560eaa2c
Add admin access support to Grafana w/ provided user/pass
2018-07-21 01:22:22 +02:00
Ske
f50a08b50b
Add occasional basic stat reporting to InfluxDB
2018-07-21 01:22:07 +02:00
Ske
ec5a023348
Fix my idiocy
2018-07-21 00:29:26 +02:00
Ske
26d89136b1
Add a command for backdating switches
2018-07-20 22:56:32 +02:00
Ske
acb11dd9d6
Fix delete suggestion
2018-07-20 13:33:21 +02:00
Ske
e77fa1caa6
Drop-in replace the event loop with uvloop
2018-07-18 15:26:15 +02:00
Ske
6b9ef9523e
Make bot restart like the other containers
2018-07-17 22:09:20 +02:00
Ske
131ea6ef4e
Use only year 0001 as null-year
2018-07-17 19:52:00 +02:00
Ske
a25e689180
Fix multi-page Tupperware importing
2018-07-16 22:14:12 +02:00
Ske
1f00c8bf3b
Add prefix to usage message
2018-07-16 21:51:01 +02:00
Ske
c32f926f95
Add avatar to system set command usage
2018-07-16 21:50:35 +02:00
Ske
7a26314a7a
Fix right axis on DB queries
2018-07-16 21:27:12 +02:00
Ske
20e910b27a
Change Grafana port to something less common
2018-07-16 20:54:46 +02:00
Ske
0b8488606b
Add InfluxDB/Grafana monitoring
2018-07-16 20:53:41 +02:00
Ske
9c0811afe8
Whoops
2018-07-16 13:37:06 +02:00
Ske
f9b156c4a2
Preview color when setting member color
2018-07-16 13:33:15 +02:00
Ske
66c456f2ec
Allow posting blank messages if an attachment is included
2018-07-16 07:10:06 +02:00