aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-06-05 10:13:14 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-06-05 10:13:14 +0000
commit6222a5f20aee40feed480c5e16c315ecf4e5fd31 (patch)
treeb6e3289016bdb4dee6c4c6266061e2b2ca230cab /bot.py
parente769f9e3a5a51084a2ec13e5e9970f5aeb676460 (diff)
parent04bd31f08144e04667a94f629e21b5eaecd78edb (diff)
downloadsteve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar.gz
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar.bz2
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar.lz
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar.xz
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.tar.zst
steve-bot-6222a5f20aee40feed480c5e16c315ecf4e5fd31.zip
Merge branch 'master' of https://github.com/AnInternetTroll/mcbeDiscordBot
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py25
1 files changed, 9 insertions, 16 deletions
diff --git a/bot.py b/bot.py
index 84da486..62645f3 100755
--- a/bot.py
+++ b/bot.py
@@ -13,17 +13,20 @@ extensions = [
"cogs.help",
"cogs.trans",
"cogs.player",
- "cogs.general"
+ "cogs.general",
+ "cogs.logs"
]
+
+
def get_prefix(bot, message):
"""A callable Prefix for our bot. This could be edited to allow per server prefixes."""
- prefixes = ['steve ', 'STEVE ', '/', '!', '@','Steve ']
+ prefixes = ['steve ', 'STEVE ', '/', '!', '@', 'Steve ']
# Check to see if we are outside of a guild. e.g DM's etc.
- #if not message.guild:
- # Only allow ? to be used in DMs
- # return '?'
+ # if not message.guild:
+ # Only allow ? to be used in DMs
+ # return '?'
# If we are in a guild, we allow for the user to mention us or use any of the prefixes in our list.
return commands.when_mentioned_or(*prefixes)(bot, message)
@@ -55,23 +58,13 @@ class BedrockBot(commands.Bot):
await self.process_commands(message)
try:
- command = message.content.split()[0]
+ 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(
- title=message.author,
- 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)