Merge pull request #402 from LightningTipBot/dalle_require_private_chat

require private chat interceptor
This commit is contained in:
calle 2022-08-30 21:30:19 +02:00 committed by GitHub
commit 9d3f856d02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,7 @@ func (bot TipBot) getHandler() []InterceptionWrapper {
Handler: bot.generateImages,
Interceptor: &Interceptor{
Before: []intercept.Func{
bot.requirePrivateChatInterceptor,
bot.localizerInterceptor,
bot.logMessageInterceptor,
bot.loadUserInterceptor,