aboutsummaryrefslogtreecommitdiff
path: root/cogs/help.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-05-31 17:43:52 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-05-31 17:43:52 +0000
commitd7d868a43adb2bd3f89b4400288a397960e85769 (patch)
tree37d57254c1cdb823a8be7f9267c6dfcf491e5d26 /cogs/help.py
parent5731037878ad270803d2c3bbfe5b3980acb1ded8 (diff)
downloadsteve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar.gz
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar.bz2
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar.lz
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar.xz
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.tar.zst
steve-bot-d7d868a43adb2bd3f89b4400288a397960e85769.zip
Replace Dyno
Diffstat (limited to 'cogs/help.py')
-rw-r--r--cogs/help.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/cogs/help.py b/cogs/help.py
index ac330f1..91c9c45 100644
--- a/cogs/help.py
+++ b/cogs/help.py
@@ -1,5 +1,10 @@
from discord.ext import commands
from random import randint
+import os, sys, inspect
+current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
+parent_dir = os.path.dirname(current_dir)
+sys.path.insert(0, parent_dir)
+import bot
class MyHelpCommand(commands.MinimalHelpCommand):
messages = [
@@ -374,6 +379,17 @@ class Help(commands.Cog):
def cog_unload(self):
self.bot.help_command = self._original_help_command
+ @commands.command()
+ async def prefix(self, ctx):
+ prefixes = bot.get_prefix(self.bot, ctx.message)
+ prefixes.pop(1)
+ prefixes.pop(1)
+ prefixes.pop(1)
+ output = ""
+ for i in prefixes:
+ output += i+", "
+
+ await ctx.send(f"My prefixes are {output}")
def setup(bot):
bot.add_cog(Help(bot))