frodakcin / orz-bot

orz
16 stars 2 forks source link

Link commands with Muting #3

Open fishy15 opened 5 years ago

fishy15 commented 5 years ago

from prodakcin himself:

for the mute function, can u please link the commands with the muting? ie in the Muted class, add (w/ potentially different names)

def update() # for all expired mutes, unmute (remove role with id MuteRoleId, leave as const variable)

def punish(user, time):
# this should also automatically resort array [muteList] by time (O(N) is okay) and append iff user isnt muted already. if they are, stack penalties

def call(command):
# command is "!mute playername [number]['s','m','h','d','m','y']
# for example "!mute arrayman 48h" or "!mute eygmath 7d"

ill try to deal with json