Give some help to the users on how to defuse the bomb (#4)

* Update plugin.py

Add an explanation on what command to use to try to defuse the bomb.
I'm getting the command char directly from the config, which might not be a good idea since we can have multiple chars

* Update plugin.py

Add an explanation on what command to use to try to defuse the bomb.
I'm getting the first command char directly from the config (assuming that we have one)

* Update plugin.py

Merge proposal:
Add an explanation on what command to use to try to defuse the bomb.
I'm getting the first command char directly from the config (assuming that we have one)
This commit is contained in:
Vitor Luis 2019-11-01 23:07:41 +01:00 committed by Gordon Shumway
parent 5447635234
commit ca21f5c5c1

View File

@ -95,6 +95,8 @@ class TimeBomb(callbacks.Plugin):
schedule.addEvent(detonate, time.time() + self.detonateTime, '{}_bomb'.format(self.channel))
s = 'stuffs a bomb down {}\'s pants. The timer is set for {} seconds! There are {} wires. They are: {}.'.format(self.victim, self.detonateTime, len(wires), utils.str.commaAndify(wires))
self.irc.queueMsg(ircmsgs.action(self.channel, s))
command_char = conf.supybot.reply.whenAddressedBy.chars()[0]
self.irc.queueMsg(ircmsgs.privmsg(self.channel, "{}, try to defuse the bomb using the command: '{}cutwire \x02color\x02'".format(self.victim, command_char)))
if self.victim == irc.nick:
time.sleep(1)