mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
shut up shronk bot
This commit is contained in:
parent
55b563bcce
commit
a3de3aaeec
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import random
|
import random
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
from datetime import datetime, time, timedelta
|
from datetime import datetime, time
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
from utils import Student, get_or_none, console
|
from utils import Student, get_or_none, console
|
||||||
|
@ -68,7 +68,7 @@ class Events(commands.Cog):
|
||||||
return
|
return
|
||||||
if message.author.id == self.bot.user.id:
|
if message.author.id == self.bot.user.id:
|
||||||
if payload.emoji.name == "\N{wastebasket}\U0000fe0f":
|
if payload.emoji.name == "\N{wastebasket}\U0000fe0f":
|
||||||
await message.delete(delay=1)
|
await message.delete(delay=0.5)
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_member_join(self, member: discord.Member):
|
async def on_member_join(self, member: discord.Member):
|
||||||
|
@ -103,7 +103,7 @@ class Events(commands.Cog):
|
||||||
async def on_message(self, message: discord.Message):
|
async def on_message(self, message: discord.Message):
|
||||||
if not message.guild:
|
if not message.guild:
|
||||||
return
|
return
|
||||||
# return console.log("Ignoring, was not in a guild.")
|
|
||||||
if message.channel.name == "pinboard":
|
if message.channel.name == "pinboard":
|
||||||
if message.type == discord.MessageType.pins_add:
|
if message.type == discord.MessageType.pins_add:
|
||||||
await message.delete(delay=0.01)
|
await message.delete(delay=0.01)
|
||||||
|
@ -117,6 +117,9 @@ class Events(commands.Cog):
|
||||||
await message.delete(delay=1)
|
await message.delete(delay=1)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if message.author.id == "1063875884274163732" and message.content.startswith("Congratulations!!"):
|
||||||
|
if message.channel.can_send():
|
||||||
|
return await message.reply("Shut up SHRoNK Bot, nobody loves you.")
|
||||||
if message.author.bot is True:
|
if message.author.bot is True:
|
||||||
return
|
return
|
||||||
if message.content:
|
if message.content:
|
||||||
|
|
Loading…
Reference in a new issue