diff --git a/cogs/audio.py b/cogs/audio.py index de0bebf5e..1b23a4551 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -391,7 +391,10 @@ class Audio: def empty_cache(self): files = os.listdir("data/audio/cache") for f in files: - os.unlink("data/audio/cache/" + f) + try: + os.unlink("data/audio/cache/" + f) + except PermissionError: # In case it tries to delete the file that it's currently playing + pass def cache_size(self): total = [os.path.getsize("data/audio/cache/" + f) for f in os.listdir("data/audio/cache")] diff --git a/cogs/economy.py b/cogs/economy.py index f6e773ea2..e8a4be0d2 100644 --- a/cogs/economy.py +++ b/cogs/economy.py @@ -71,7 +71,7 @@ class Economy: self.add_money(id, self.settings["PAYDAY_CREDITS"]) await self.bot.say("{} `Here, take some credits. Enjoy! (+{} credits!)`".format(author.mention, str(self.settings["PAYDAY_CREDITS"]))) else: - await self.bot.say("{} `You need an account to receive credits. (!economy)`".format(author.mention)) + await self.bot.say("{} `You need an account to receive credits.`".format(author.mention)) @commands.command(pass_context=True) async def payouts(self, ctx): diff --git a/cogs/general.py b/cogs/general.py index aef8a356b..50d311655 100644 --- a/cogs/general.py +++ b/cogs/general.py @@ -106,7 +106,7 @@ class General: """ question = " ".join(question) if question.endswith("?") and question != "?": - return await self.bot.say("```" + randchoice(self.ball) + "```") + return await self.bot.say("`" + randchoice(self.ball) + "`") else: return await self.bot.say("That doesn't look like a question.") @@ -200,9 +200,9 @@ class General: """Starts/stops a poll Usage example: - poll Is this a poll?;Yes;No;Maybe""" + poll Is this a poll?;Yes;No;Maybe + poll stop""" message = ctx.message - print(text) if len(text) == 1: if text[0].lower() == "stop": await self.endpoll(message) diff --git a/startRed.bat b/startRed.bat index 93b5e2033..dd3fe9c44 100644 --- a/startRed.bat +++ b/startRed.bat @@ -1,2 +1,3 @@ +chcp 65001 python red.py pause \ No newline at end of file diff --git a/startRedLoop.bat b/startRedLoop.bat index 4f36282d5..10d08bd59 100644 --- a/startRedLoop.bat +++ b/startRedLoop.bat @@ -1,4 +1,5 @@ @Echo off +chcp 65001 :Start python red.py