Skip to content

Commit

Permalink
fixed pfp_url add
Browse files Browse the repository at this point in the history
  • Loading branch information
TKperson committed Feb 5, 2022
1 parent 8cad7be commit 332e1ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
venv
data

4 changes: 2 additions & 2 deletions c-realV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1814,8 +1814,8 @@ def alreadyExisted(checkingID):
if len(args) > 1 and args[2].lower() == 'none':
settings['webhook_spam']['pfp_urls'].append(None)
await log(ctx, f'No pfp item has been added')
elif len(args) > 1 and (text := args[2].startswith(('https://', 'http://'))):
settings['webhook_spam']['pfp_urls'].append(text)
elif len(args) > 1 and args[2].startswith(('https://', 'http://')):
settings['webhook_spam']['pfp_urls'].append(args[2])
await log(ctx, f'URL added.')
else:
await log(ctx, f'Please enter an **image URL**. Note: the link must start with http(s) protocals. Or enter `none` for no pfp.')
Expand Down

0 comments on commit 332e1ae

Please sign in to comment.