Bläddra i källkod

error fixing wooooo

tags/v1.7.0
Roxie Gibson 6 år sedan
förälder
incheckning
badd32c2d9
2 ändrade filer med 1 tillägg och 2 borttagningar
  1. +1
    -1
      roxbot/err_handle.py
  2. +0
    -1
      roxbot/settings/settings.py

+ 1
- 1
roxbot/err_handle.py Visa fil

@@ -50,7 +50,7 @@ class ErrHandle:
cc = guild_settings.get(ctx.guild).custom_commands
if ctx.invoked_with in cc["1"]:
embed = None
elif ctx.message.content <= 2:
elif len(ctx.message.content) <= 2:
embed = None
elif any(x in string.punctuation for x in ctx.message.content.strip(ctx.prefix)[0]):
# Should avoid punctuation emoticons. Checks all of the command for punctuation in the string.

+ 0
- 1
roxbot/settings/settings.py Visa fil

@@ -92,7 +92,6 @@ class Settings:
new_users.append(str(user))
setting[x] = new_users
else:
print(setting[x])
user = self.bot.get_user(setting[x])
if user is None:
setting[x] = str(setting[x])

Laddar…
Avbryt
Spara