Add !bloodcat command, automatically send bloodcat links in #spectator

This commit is contained in:
Giuseppe Guerra
2018-08-14 00:04:04 +02:00
parent 925d55bb16
commit cb6d828fd9
2 changed files with 72 additions and 11 deletions

View File

@@ -67,6 +67,7 @@ class match:
self._lock = threading.Lock()
self.createTime = int(time.time())
self.vinseID = None
self.bloodcatAlert = False
# Create all slots and reset them
self.slots = []
@@ -441,6 +442,16 @@ class match:
chat.sendMessage("FokaBot", chanName, "Match history available [{} here]".format(
"https://vinse.ripple.moe/match/{}".format(self.vinseID)
))
if not self.bloodcatAlert:
chat.sendMessage(
"FokaBot",
chanName,
"Oh by the way, in case you're playing unranked or broken maps "
"that are now available through ripple's osu!direct, you can "
"type '!bloodcat' in the chat to get a download link for the "
"currently selected map from Bloodcat!"
)
self.bloodcatAlert = True
# If this is a tournament match, then we send a notification in the chat
# saying that the match has completed.