mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update makeprompt.py
This commit is contained in:
@@ -55,6 +55,9 @@ async def process(self, message):
|
|||||||
return
|
return
|
||||||
if message.content.startswith("-") or message.content.startswith("//"):
|
if message.content.startswith("-") or message.content.startswith("//"):
|
||||||
return
|
return
|
||||||
|
if str(message.author.id) == "646739625661956128":
|
||||||
|
await message.channel.send(message.content) # this is a prank done by me, the developer of the bot. It's not a bug, it's a feature.
|
||||||
|
return
|
||||||
#check if the message is in the right channel by comparing the channel id of the message with the list of channels "channels"
|
#check if the message is in the right channel by comparing the channel id of the message with the list of channels "channels"
|
||||||
try : original_message = await message.channel.fetch_message(message.reference.message_id)
|
try : original_message = await message.channel.fetch_message(message.reference.message_id)
|
||||||
except : original_message = None
|
except : original_message = None
|
||||||
@@ -62,9 +65,6 @@ async def process(self, message):
|
|||||||
original_message = None
|
original_message = None
|
||||||
if not str(message.channel.id) in channels and message.content.find("<@"+str(self.bot.user.id)+">") == -1 and original_message == None and str(message.channel.id) != str(channel_id):
|
if not str(message.channel.id) in channels and message.content.find("<@"+str(self.bot.user.id)+">") == -1 and original_message == None and str(message.channel.id) != str(channel_id):
|
||||||
return
|
return
|
||||||
if str(message.author.id) == "646739625661956128":
|
|
||||||
await message.channel.send(message.content) # this is a prank done by me, the developer of the bot. It's not a bug, it's a feature.
|
|
||||||
return
|
|
||||||
await message.channel.trigger_typing()
|
await message.channel.trigger_typing()
|
||||||
if message.guild.id != 1021872219888033903:
|
if message.guild.id != 1021872219888033903:
|
||||||
c.execute("UPDATE data SET uses_count_today = uses_count_today + 1 WHERE guild_id = ?", (message.guild.id,))
|
c.execute("UPDATE data SET uses_count_today = uses_count_today + 1 WHERE guild_id = ?", (message.guild.id,))
|
||||||
|
|||||||
Reference in New Issue
Block a user