-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Syunngiku0402
committed
Dec 23, 2024
1 parent
9c04cd8
commit 80f14d3
Showing
2 changed files
with
67 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,75 @@ | ||
from discord.ext import commands | ||
import discord | ||
from config.config import config | ||
import random | ||
from datetime import datetime | ||
|
||
ORUVANORUVAN = """ | ||
ஒருவன் ஒருவன் முதலாளி | ||
உலகில் மற்றவன் தொழிலாளி | ||
விதியை நினைப்பவன் ஏமாளி | ||
அதை வென்று முடிப்பவன் அறிவாளி | ||
class CTemplate(commands.Cog): | ||
பூமியை வெல்ல ஆயுதம் எதற்கு | ||
பூப்பறிக்க கோடரி எதற்கு | ||
பொன்னோ பொருளோ போர்க்களம் எதற்கு | ||
ஆசை துறந்தால் அகிலம் உனக்கு | ||
""" | ||
|
||
|
||
GABU = """ | ||
** **Λ_Λ \\ | ||
( ・∀・) | | ガッ | ||
と ) | | | ||
Y /ノ 人 | ||
/ ) < >_Λ∩ | ||
_/し' //. V`Д´)/ | ||
(_フ彡 / ←>>1 | ||
""" | ||
|
||
|
||
class CAutoreply(commands.Cog): | ||
def __init__(self, bot: commands.Bot): | ||
self.bot = bot | ||
|
||
async def on_message(self, message: discord.Message): | ||
if message.channel.id == config.botcommand_channel_id: | ||
if message.author.bot: | ||
return | ||
|
||
elif message.content.startswith("ぬるぽ"): | ||
num = random.random() | ||
if num < 0.9: | ||
await message.channel.send("ガッ", silent=True) | ||
elif num < 0.96: | ||
await message.channel.send("ガブッ", silent=True) | ||
else: | ||
await message.channel.send(GABU, silent=True) | ||
|
||
elif message.content.startswith("NullPointerException"): | ||
num = random.random() | ||
if num < 0.95: | ||
await message.channel.send("ガッ, silent=True") | ||
elif num < 0.98: | ||
await message.channel.send("ガブッ", silent=True) | ||
else: | ||
await message.channel.send(GABU, silent=True) | ||
|
||
elif message.content.startswith("!d bump"): | ||
await message.channel.send("そのコマンドは<t:1648767600:F>にサ終しました(笑)", silent=True) | ||
|
||
elif message.content.startswith("/bump"): | ||
await message.channel.send( | ||
embed=discord.Embed( | ||
title="BUMPを実行出来てないよ!!", | ||
color=0x00BFFF, | ||
timestamp=datetime.now(), | ||
), silent=True | ||
) | ||
|
||
elif message.content.startswith("oruvanoruvan"): | ||
await message.channel.send(ORUVANORUVAN, silent=True) | ||
|
||
|
||
async def setup(bot: commands.Bot): | ||
await bot.add_cog(CTemplate(bot)) | ||
await bot.add_cog(CAutoreply(bot)) |