aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py25
1 files changed, 9 insertions, 16 deletions
diff --git a/bot.py b/bot.py
index 84da486..62645f3 100644
--- 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)