mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-24 01:14:13 +00:00
Fix not finding user via ping
This commit is contained in:
parent
e1f8bf8b6e
commit
d355cd9d8f
1 changed files with 4 additions and 3 deletions
|
@ -279,9 +279,10 @@ class WtCommands:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
if inputstr.startswith('<@!') and inputstr.endswith('>'):
|
if inputstr.startswith('<@!') and inputstr.endswith('>'):
|
||||||
idsearch = inputstr[3:][:-1]
|
idsearch = int(inputstr[3:][:-1])
|
||||||
if inputstr.startswith('<@') and inputstr.endswith('>'):
|
elif inputstr.startswith('<@') and inputstr.endswith('>'):
|
||||||
idsearch = inputstr[2:][:-1]
|
idsearch = int(inputstr[2:][:-1])
|
||||||
|
|
||||||
if idsearch is not None:
|
if idsearch is not None:
|
||||||
return guild.get_member(idsearch)
|
return guild.get_member(idsearch)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue