check your privilege
This commit is contained in:
parent
ce55e2eed3
commit
bf896dfe4e
22
modules/privilege.py
Normal file
22
modules/privilege.py
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Checks a given user's privilege.
|
||||||
|
"""
|
||||||
|
import random
|
||||||
|
|
||||||
|
from module import commands
|
||||||
|
|
||||||
|
|
||||||
|
@commands("check")
|
||||||
|
def check_privilege(bot, trigger):
|
||||||
|
"""
|
||||||
|
Checks the user's privilege.
|
||||||
|
"""
|
||||||
|
if trigger.group(2):
|
||||||
|
nick = trigger.group(2)
|
||||||
|
else:
|
||||||
|
nick = trigger.nick
|
||||||
|
|
||||||
|
random.seed(nick)
|
||||||
|
bot.msg("Privilege: " + str(random.randint(1,9001)))
|
||||||
|
random.seed()
|
Loading…
Reference in New Issue
Block a user