-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
82ddbb0
commit 6ef89e7
Showing
7 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,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 |
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 |
---|---|---|
@@ -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") |
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