mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
deactivate
This commit is contained in:
parent
1b69313fc5
commit
ec2de611e4
1 changed files with 14 additions and 14 deletions
|
|
@ -99,20 +99,20 @@ func (bot TipBot) getHandler() []InterceptionWrapper {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Endpoints: []interface{}{"/generate"},
|
||||
Handler: bot.generateImages,
|
||||
Interceptor: &Interceptor{
|
||||
Before: []intercept.Func{
|
||||
bot.localizerInterceptor,
|
||||
bot.loadUserInterceptor,
|
||||
bot.lockInterceptor,
|
||||
},
|
||||
OnDefer: []intercept.Func{
|
||||
bot.unlockInterceptor,
|
||||
},
|
||||
},
|
||||
},
|
||||
// {
|
||||
// Endpoints: []interface{}{"/generate"},
|
||||
// Handler: bot.generateImages,
|
||||
// Interceptor: &Interceptor{
|
||||
// Before: []intercept.Func{
|
||||
// bot.localizerInterceptor,
|
||||
// bot.loadUserInterceptor,
|
||||
// bot.lockInterceptor,
|
||||
// },
|
||||
// OnDefer: []intercept.Func{
|
||||
// bot.unlockInterceptor,
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{
|
||||
Endpoints: []interface{}{"/tip", "/t", "/honk"},
|
||||
Handler: bot.tipHandler,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue