diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-06-04 21:00:14 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-06-04 21:00:14 +0000 |
commit | 311e11dc0b669d70fc9695ef9da99fb152785a45 (patch) | |
tree | 645d82f602c4b40f13bc69462aeca5626859876e /bot.py | |
parent | a57aca425599a086ff3198947a118edca91c2b3e (diff) | |
parent | abe3606c9358d56b4ce08ac50665ad84b0078b7f (diff) | |
download | steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar.gz steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar.bz2 steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar.lz steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar.xz steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.tar.zst steve-bot-311e11dc0b669d70fc9695ef9da99fb152785a45.zip |
Merge branch 'master' of https://github.com/AnInternetTroll/mcbeDiscordBot
Diffstat (limited to 'bot.py')
-rwxr-xr-x | bot.py | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -54,11 +54,23 @@ class BedrockBot(commands.Bot): return await self.process_commands(message) - command = message.content.split()[0] + try: + command = message.content.split()[0] + except IndexError: + pass if command in self.custom_commands: await message.channel.send(self.custom_commands[command]) return + + async def on_message_delete(self, message): + channel = self.get_channel(718187032869994686) + embed = discord.Embed( + description=message.content, + color=message.author.color, + timestamp=message.created_at + ) + await channel.send(embed=embed) def run(self): - super().run(config.token, reconnect=True)
\ No newline at end of file + super().run(config.token, reconnect=True) |