mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Add rate limiting, API response caching, and fix progress bar panic
- Rate limit !weather (5/day), !concerts (10/day), fix !translate default to 20/day - Add generic api_cache table with CacheGet/CacheSet helpers - Cache !weather (1h), !wiki, !define, !tv (24h), !upcoming movies, !anime season/upcoming (24h) - Fix ProgressBar panic on negative Repeat count when XP exceeds level threshold - All rate limits configurable via RATELIMIT_* env vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
main.go
4
main.go
@@ -86,7 +86,7 @@ func main() {
|
||||
registry.Register(plugin.NewTriviaPlugin(client))
|
||||
registry.Register(plugin.NewRemindersPlugin(client))
|
||||
registry.Register(plugin.NewPresencePlugin(client))
|
||||
registry.Register(plugin.NewFunPlugin(client))
|
||||
registry.Register(plugin.NewFunPlugin(client, ratePlugin))
|
||||
registry.Register(plugin.NewToolsPlugin(client))
|
||||
registry.Register(plugin.NewUserPlugin(client))
|
||||
|
||||
@@ -95,7 +95,7 @@ func main() {
|
||||
registry.Register(plugin.NewLookupPlugin(client, ratePlugin))
|
||||
registry.Register(plugin.NewCountdownPlugin(client))
|
||||
registry.Register(plugin.NewStocksPlugin(client))
|
||||
registry.Register(plugin.NewConcertsPlugin(client))
|
||||
registry.Register(plugin.NewConcertsPlugin(client, ratePlugin))
|
||||
registry.Register(plugin.NewAnimePlugin(client))
|
||||
registry.Register(plugin.NewMoviesPlugin(client))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user