Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import minqlx
- import random
- class who(minqlx.Plugin):
- def __init__(self):
- self.add_command("who", self.cmd_who)
- def cmd_who(self, player, msg, channel):
- if len(msg) < 2:
- channel.reply("Type your question: !who <question>")
- else:
- random_player = random.choice(self.players())
- channel.reply(str(random_player))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement