Skip to content

Commit

Permalink
add ultra dead chat feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAnt220 committed Dec 29, 2024
1 parent 82ddbb0 commit 6ef89e7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
Binary file removed assets/faqs/resolve/1.png
Binary file not shown.
9 changes: 0 additions & 9 deletions assets/faqs/resolve/resolve.md

This file was deleted.

1 change: 0 additions & 1 deletion cogs/faqs/faqs.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"псевдо анимация модели": ["pseudo model animation", "3d model animation", "anim texture method", "анимация 3д модели", "метод аним текстуры", "зыугвщ ьщвуд фтшьфешщт", "3в ьщвуд фтшьфешщт", "фтшь еучегку ьуерщв"],
"кастом типы урона": ["custom damage types", "damage types", "dmg type", "типы урона", "дамаг тайпы", "дмг типы", "сгыещь вфьфпу ензуы", "вфьфпу ензуы", "вьп ензу"],
"скорборд критерии": ["скорборды", "критерии", "scoreboard criterias", "scoreboards", "criterias", "sbc", "сбс","ыиы","ысщкуищфкв скшеукшфы"],
"resolve": ["solve", "ыщдму", "куыщдму", "решено", "ресолв", "резолв", "солв"],
"преимущества дп над кб": ["datapacks are better than command blocks","преимущества датапаков над кб","дп лучше чем кб","дп над кб","датапаки лучше чем кб","датапаки над кб","дп>кб","датапаки>командные блоки","datapacks>command blocks","datapacks over command blocks","dp over cb","dp>cb","datapack advantages over command blocks","dp advantages over cb","dp is better than cb","преимущества"],
"преимущества дп над кб (полная версия)": ["преимущества полная версия"],
"оптимизация селекторов": ["selector optimization","optimize selectors","оптимизировать селекторы","оптимизировать аргументы селекторов","оптимизировать аргументы","оптиселектор"],
Expand Down
1 change: 1 addition & 0 deletions cogs/fun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from cogs.fun.enchants import EnchantCommands
from cogs.fun.look_for import LookForCommand, LookForView
from cogs.fun.randoms import RandomCommands
from cogs.fun.dead_chat import DeadChat
19 changes: 19 additions & 0 deletions cogs/fun/dead_chat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from discord.ext import commands
from settings import CHAT_ID
from asyncio import sleep

class DeadChat(commands.Cog):
def __init__(self, bot):
self.bot = bot

@commands.Cog.listener("on_message")
async def dead_chat(self, msg):
if msg.channel.id != CHAT_ID:
return
if msg.author.bot:
return
new_message_id = msg.id
await sleep(4*60*60)
latest_messages = [msg async for msg in msg.channel.history(limit=1)]
if latest_messages[0].id == new_message_id:
await msg.channel.send("https://tenor.com/view/ultra-dead-chat-dead-chat-gif-27600164")
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from cogs.admin import DebugCommand, EditCommand, PingCommand, StatusCommands, SayCommand
from cogs.faqs import FAQs
from cogs.fun import EnchantCommands, LookForCommand, RandomCommands, LookForView
from cogs.fun import EnchantCommands, LookForCommand, RandomCommands, LookForView, DeadChat
from cogs.general import JoinAndLeaveMessage, ServerInfoCommand, BotPing, BotPingView
from cogs.giveaway import GiveawayCommand, GAModerationCommands, JudgeGA
from cogs.help import HelpCommand, LinkCommand, Pin, R_u_sure, StarterMessage, StarterView, SyntaxCommand
Expand All @@ -20,7 +20,7 @@

cogs = [DebugCommand, EditCommand, PingCommand, StatusCommands,
FAQs,
EnchantCommands, LookForCommand, RandomCommands,
EnchantCommands, LookForCommand, RandomCommands, DeadChat,
HelpCommand, LinkCommand, Pin, StarterMessage, SyntaxCommand,
JoinAndLeaveMessage, SayCommand, ServerInfoCommand, BotPing,
GiveawayCommand, GAModerationCommands,
Expand Down
1 change: 1 addition & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

GUILD = 914772142300749854

CHAT_ID = 916749719093518386
DMS_LOGS_GUILD_ID = 1204336106896752650
BOT_COMMANDS_CHANNEL_ID = 916788471480348743
CREATIONS_FORUM_ID = 1119942140705898667
Expand Down

0 comments on commit 6ef89e7

Please sign in to comment.