From 00815c1f49af6e192150c297a7dc01d021525c8f Mon Sep 17 00:00:00 2001 From: Syunngiku0402 Date: Mon, 16 Dec 2024 17:48:09 +0900 Subject: [PATCH] =?UTF-8?q?help=E3=81=AE=E3=82=B3=E3=83=BC=E3=83=89(=3F)?= =?UTF-8?q?=E5=8C=96&=E3=81=AC=E3=82=8B=E3=81=BD=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommandLab.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/CommandLab.py b/CommandLab.py index f4c1b6d..9e9b302 100644 --- a/CommandLab.py +++ b/CommandLab.py @@ -8,6 +8,7 @@ import aiofiles import discord import yaml +import random from discord import app_commands from discord.abc import User from discord.ext import commands @@ -51,6 +52,17 @@ """ +GABU = """ +**  **Λ_Λ  \\ +  ( ・∀・)   | | ガッ + と    )    | | +   Y /ノ    人 +    / )    <  >_Λ∩ +  _/し' //. V`Д´)/ + (_フ彡        / ←>>1 +""" + + class CommandLabBot(commands.Bot): status_index: int @@ -147,7 +159,11 @@ async def on_message(message: discord.Message): return elif message.content.startswith("ぬるぽ"): - await message.channel.send("ガブッ") + num = random.random() + if num < 0.95: + await message.channel.send("ガブッ") + else: + await message.channel.send(GABU) elif message.content.startswith("!d bump"): await message.channel.send("そのコマンドはにサ終しました(笑)")