mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
Merge pull request #398 from LightningTipBot/dalle_fix/fix1
prompt check
This commit is contained in:
commit
1b69313fc5
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ func (bot *TipBot) confirmGenerateImages(ctx intercept.Context) (intercept.Conte
|
|||
ResetUserState(user, bot)
|
||||
m := ctx.Message()
|
||||
prompt := m.Text
|
||||
if len(prompt) == 0 {
|
||||
return ctx, fmt.Errorf("prompt not given")
|
||||
}
|
||||
|
||||
if user.Wallet == nil {
|
||||
return ctx, fmt.Errorf("user has no wallet")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue