fulvia/modules/privilege.py

23 lines
374 B
Python
Raw Normal View History

2018-06-04 18:47:27 -04:00
#!/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.
"""
2020-05-22 09:00:01 -04:00
if len(trigger.args) > 1:
2020-01-07 18:58:19 -05:00
nick = trigger.args[1]
2018-06-04 18:47:27 -04:00
else:
nick = trigger.nick
random.seed(nick)
bot.msg("Privilege: " + str(random.randint(1,9001)))
random.seed()