uno fixes
This commit is contained in:
parent
d24e9b751d
commit
ce634b4923
|
@ -48,7 +48,7 @@ class UnoPlay(ModuleBase):
|
||||||
"""
|
"""
|
||||||
if trailing.startswith("["): # anti-znc buffer playback
|
if trailing.startswith("["): # anti-znc buffer playback
|
||||||
return
|
return
|
||||||
if self.config["unobot"] not in prefix:
|
if not prefix or self.config["unobot"] not in prefix:
|
||||||
return
|
return
|
||||||
|
|
||||||
if "You don't have that card" in trailing:
|
if "You don't have that card" in trailing:
|
||||||
|
@ -98,6 +98,10 @@ class UnoPlay(ModuleBase):
|
||||||
self.pickcolor()
|
self.pickcolor()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if "Choose a color" in trailing and self.bot.get_nick() not in trailing:
|
||||||
|
# Waiting for other guy to choose a color
|
||||||
|
return
|
||||||
|
|
||||||
# See if someone passed to us
|
# See if someone passed to us
|
||||||
if "passes" in trailing and self.bot.get_nick() in trailing:
|
if "passes" in trailing and self.bot.get_nick() in trailing:
|
||||||
self.shouldgo = True
|
self.shouldgo = True
|
||||||
|
@ -281,6 +285,8 @@ class UnoPlay(ModuleBase):
|
||||||
if self.has_drawn:
|
if self.has_drawn:
|
||||||
self.has_drawn = False
|
self.has_drawn = False
|
||||||
self.shouldgo = False
|
self.shouldgo = False
|
||||||
|
if self.config["enable_delays"]:
|
||||||
|
time.sleep(self.config["randomhuman_sleep"])
|
||||||
self.bot.act_PRIVMSG(self.config["unochannel"], "pa")
|
self.bot.act_PRIVMSG(self.config["unochannel"], "pa")
|
||||||
else:
|
else:
|
||||||
self.has_drawn = True
|
self.has_drawn = True
|
||||||
|
|
Loading…
Reference in New Issue