コード例 #1
0
ファイル: ducks.py プロジェクト: tazz4843/DHV4
    async def get_bye_shout(self) -> str:
        _ = await self.get_translate_function()
        shouts = self.get_cosmetics()['bye_shouts']

        shout = _(random.choice(shouts))

        return anti_bot_zero_width(shout)
コード例 #2
0
ファイル: ducks.py プロジェクト: tazz4843/DHV4
    async def get_bye_trace(self) -> str:
        _ = await self.get_translate_function()
        traces = self.get_cosmetics()['bye_traces']

        trace = _(random.choice(traces))

        return anti_bot_zero_width(discord.utils.escape_markdown(trace))
コード例 #3
0
ファイル: ducks.py プロジェクト: tazz4843/DHV4
    async def get_shout(self) -> str:
        _ = await self.get_translate_function()
        shouts = self.get_cosmetics()['shouts']

        shout = _(random.choice(shouts))
        if "http" in shout:
            return shout
        else:
            return anti_bot_zero_width(shout)
コード例 #4
0
ファイル: ducks.py プロジェクト: tazz4843/DHV4
    async def get_trace(self) -> str:
        traces = self.get_cosmetics()['traces']
        trace = escape_markdown(random.choice(traces))

        return anti_bot_zero_width(trace)