Commit Graph

1156 Commits

Author SHA1 Message Date
Chris Sexton 668b0dcb7b emojy: sort the emojy list page 2022-07-23 09:49:27 -04:00
Chris Sexton 4c1a02e9fb cowboy: reuse some code 2022-07-23 09:27:21 -04:00
Chris Sexton 274d8f6966 cowboy: fix original url 2022-07-23 09:10:38 -04:00
Chris Sexton 51da6187b0 emojy: swap in emojy command 2022-07-23 09:02:57 -04:00
Chris Sexton 0453c5ec24 cowboy: show the emojy when its made 2022-07-23 08:59:32 -04:00
Chris Sexton 3297878421 cowboy: fix overlay capture bug 2022-07-23 00:39:45 -04:00
Chris Sexton 93cfc0ddfb cowboy: optionally disable overlay command for now 2022-07-23 00:22:13 -04:00
Chris Sexton a64f4800b1 cowboy: add slash command 2022-07-23 00:22:13 -04:00
Chris Sexton 2ce2b01295 cowboy: use cache to set bounds 2022-07-23 00:22:13 -04:00
Chris Sexton 112ccea89a cowboy: add cache 2022-07-23 00:22:13 -04:00
Chris Sexton ba99b2113c discord: add slash command structure 2022-07-23 00:22:13 -04:00
Chris Sexton 22658949a8 emojy: update web UI a bit
- cards on list
- add text name to stats
2022-07-22 10:18:52 -04:00
Chris Sexton cf19a2bc15 cowboy: anchor emojy pages to URLs
This also refactored a bunch of junk and eliminated about 4k calls to
the config/database on emojy listing.
2022-07-22 10:18:52 -04:00
Chris Sexton 79cdd0f828 cowboy: stop scaling the base image so much 2022-07-22 09:16:54 -04:00
Chris Sexton 1d30a25277 cowboy: rm the original message 2022-07-21 11:42:48 -04:00
Chris Sexton f548f74be9 cowboy: make plugin 2022-07-21 11:29:45 -04:00
Chris Sexton b2ec081d51 counter: trim some spaces near aliases 2022-07-18 21:47:03 -04:00
Chris Sexton 2e0be87dd9 counter: fix ID null string regression
Also remove shared DB cache as it seems to not be necessary.
2022-07-17 14:46:09 -04:00
Chris Sexton 55ba4996eb bot: add override password for staging/testing modes 2022-07-17 14:46:09 -04:00
Chris Sexton 96229c9e11 counter: change http rate limiter criteria 2022-07-17 14:46:09 -04:00
Chris Sexton 72c32e1c16 counter: fix bug where anything but the right password worked 2022-07-17 14:46:09 -04:00
Chris Sexton df0b5d709b counter: fix bug where user ID was not passed to resolveUser 2022-07-17 14:46:09 -04:00
Chris Sexton aa7d377c08 counter: update model to reflect that the ID may be null 2022-07-17 14:46:09 -04:00
dependabot[bot] 3f7598e92c build(deps): bump github.com/slack-go/slack from 0.10.3 to 0.11.0
Bumps [github.com/slack-go/slack](https://github.com/slack-go/slack) from 0.10.3 to 0.11.0.
- [Release notes](https://github.com/slack-go/slack/releases)
- [Changelog](https://github.com/slack-go/slack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/slack-go/slack/compare/v0.10.3...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/slack-go/slack
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 09:34:23 -04:00
dependabot[bot] 13585c5fc5 build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 09:29:42 -04:00
dependabot[bot] 2a375303e7 build(deps): bump github.com/rs/zerolog from 1.26.1 to 1.27.0
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.26.1 to 1.27.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.26.1...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 09:23:18 -04:00
dependabot[bot] 88205a2c0c build(deps): bump github.com/itchyny/gojq from 0.12.7 to 0.12.8
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.7 to 0.12.8.
- [Release notes](https://github.com/itchyny/gojq/releases)
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.7...v0.12.8)

---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 09:20:12 -04:00
Chris Sexton 60678fcad2 add rate limit middleware 2022-07-07 11:28:22 -04:00
Chris Sexton 56120b168c emojy: add swap and disallow upload overwrites 2022-06-08 21:24:44 -04:00
Chris Sexton feb42b8293 emojy: allow creation and removal of emojy
- includes a web interface for uploading new images
- includes a web interface for viewing 'possible' images
2022-06-08 21:03:21 -04:00
Chris Sexton 2f8bf0edcb emojy: trim some characters here and there 2022-06-07 10:30:07 -04:00
Chris Sexton 61cdb66546 emojy: indicate if an emojy is on the server 2022-06-06 10:49:27 -04:00
Chris Sexton e8c7e1e07e emojy: make the web page nicer
- show custom emojy
- categorize by source type
- record emojy used in messages
2022-06-06 10:24:54 -04:00
Chris Sexton aa88ef44f5 emojy: redo database schema
- record emojy as timestamped log instead of a count
2022-06-02 11:03:45 -04:00
Chris Sexton 4e3cbbafad factoid: refactor and ignore reaction
- factoid is a mess, but I at least split it into a few parts
- need to move config values from factoid to fact
- need to rename the whole thing to fact
- probably need to go over it with a fine toothed comb
- 5 seconds, why 5 seconds? I still don't know
- added kind to the message type so we can filter reactions out
2022-05-31 11:27:34 -04:00
Chris Sexton 46e61f69d0 counter: use blank ID if none found
This fixes an issue where if the user hasn't spoken since the bot
restarted, the counter can't increment.
2022-05-30 19:15:17 -04:00
Chris Sexton bd3ba48bbe bot: log admin checks 2022-05-30 16:59:43 -04:00
Chris Sexton 1c22632a41 emojy: create plugin
- added reaction type and event for discord connectors
- added web page to view emojy usage
- added new table for counting emojy
2022-05-30 16:38:05 -04:00
Chris Sexton 104f48b1c3 meme: configify the default meme config 2022-05-25 15:16:26 -04:00
Chris Sexton 69cee328e7 twitch: fix web server 2022-05-20 17:16:31 -04:00
Chris Sexton a4108ecc82 twitch: change some names to match the API 2022-05-18 10:46:37 -04:00
Chris Sexton 39bb9d9237 Delete docker.yml
This is no longer a good idea now that the main server runs ARM
2022-05-16 20:05:56 -04:00
Chris Sexton 262d31ae37 Update docker.yml
IDK
2022-05-16 15:58:36 -04:00
Chris Sexton 36cdb55ea4 Update docker.yml 2022-05-16 14:46:04 -04:00
dependabot[bot] 73c9d3ccf0 build(deps): bump github.com/bwmarrin/discordgo from 0.24.0 to 0.25.0
Bumps [github.com/bwmarrin/discordgo](https://github.com/bwmarrin/discordgo) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/bwmarrin/discordgo/releases)
- [Commits](https://github.com/bwmarrin/discordgo/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: github.com/bwmarrin/discordgo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:33:03 -04:00
dependabot[bot] 6983cd196e build(deps): bump github.com/slack-go/slack from 0.10.2 to 0.10.3
Bumps [github.com/slack-go/slack](https://github.com/slack-go/slack) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/slack-go/slack/releases)
- [Changelog](https://github.com/slack-go/slack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/slack-go/slack/compare/v0.10.2...v0.10.3)

---
updated-dependencies:
- dependency-name: github.com/slack-go/slack
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:29:57 -04:00
dependabot[bot] 31ef0d08c0 build(deps): bump github.com/jmoiron/sqlx from 1.3.4 to 1.3.5
Bumps [github.com/jmoiron/sqlx](https://github.com/jmoiron/sqlx) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/jmoiron/sqlx/releases)
- [Commits](https://github.com/jmoiron/sqlx/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: github.com/jmoiron/sqlx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:26:33 -04:00
Chris Sexton 32cca1497a counter: add increment by N api 2022-05-05 18:15:38 -04:00
Chris Sexton 3964e1f4b2 meme: disable direct URL memes
GitHub noticed this is a security problem, so I am disabling it.
2022-03-22 20:30:07 -04:00
Chris Sexton 1f7ce69674 Create SECURITY.md 2022-03-22 10:02:52 -04:00