joke update
This commit is contained in:
@@ -19,4 +19,4 @@ class GifJoke(Joke):
|
||||
url: str
|
||||
|
||||
async def respond(self, message: discord.Message, client: discord.Client, match: re.Match):
|
||||
await message.channel.send(self.url)
|
||||
await message.reply(self.url)
|
||||
|
||||
@@ -87,7 +87,7 @@ class BeansJoke(base.GifJoke):
|
||||
|
||||
async def respond(self, message: discord.Message, client: discord.Client, match: re.Match):
|
||||
await message.reply('Somebody help! I\'ve got beans in my motherboard!\n')
|
||||
await super().respond(message, client, match)
|
||||
await message.channel.send(self.url)
|
||||
|
||||
|
||||
class NotLikeThisJoke(base.GifJoke):
|
||||
@@ -95,10 +95,7 @@ class NotLikeThisJoke(base.GifJoke):
|
||||
|
||||
@property
|
||||
def regex(self) -> re.Pattern:
|
||||
return re.compile('not like this', re.IGNORECASE)
|
||||
|
||||
async def respond(self, message: discord.Message, client: discord.Client, match: re.Match):
|
||||
await message.reply(self.url)
|
||||
return re.compile('like this', re.IGNORECASE)
|
||||
|
||||
|
||||
class ChiliJoke(base.GifJoke):
|
||||
@@ -107,6 +104,3 @@ class ChiliJoke(base.GifJoke):
|
||||
@property
|
||||
def regex(self) -> re.Pattern:
|
||||
return re.compile('chil(i|ly)', re.IGNORECASE)
|
||||
|
||||
async def respond(self, message: discord.Message, client: discord.Client, match: re.Match):
|
||||
await message.reply(self.url)
|
||||
|
||||
@@ -36,7 +36,7 @@ class Kwaylon(discord.Client):
|
||||
await channel.send('https://tenor.com/view/terminator-im-back-gif-19144173')
|
||||
await channel.send(f"{discord.utils.get(self.emojis, name='kaylon')}")
|
||||
|
||||
await alive()
|
||||
# await alive()
|
||||
|
||||
# self.data: data.MsgData = await data.MsgData.create(client=self, limit=self.limit, days=self.days)
|
||||
# self.data.to_sql(self.db_path)
|
||||
|
||||
Reference in New Issue
Block a user