Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
ひびきできたただしneed more hibikiness (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colk-tech authored May 12, 2020
1 parent 9e30a87 commit cf0fa14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions message_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import datetime
import os
import random

import requests
import discord
Expand Down Expand Up @@ -42,6 +43,9 @@ class MessageCommands:
"おやすみ" : "おやすみ、司令官。"
}

HIBIKI_MESSAGES = [
"なんだい?司令官"
]

def __init__(self, message: str, channel: discord.TextChannel, member: discord.Member):
"""
Expand Down Expand Up @@ -71,6 +75,10 @@ async def execute(self):
if "草" in self.message or "くさ" in self.message:
MessageCommands.LOL_COUNTER.count(self.message, self.member_id)

if "響" in self.message or "ひびき" in self.message:
chosen_msg = random.choice(MessageCommands.HIBIKI_MESSAGES)
await self.channel.send(chosen_msg)

if self.message.count("***") >= 2:
await self.channel.send(
self.response_dict["bold-italic-cop"]["message"].format(MessageCommands.MESSAGE_COMMANDS["ハラショー"])
Expand Down

0 comments on commit cf0fa14

Please sign in to comment.