Browse Source

error fixing wooooo

tags/v1.7.0
Roxie Gibson 6 years ago
parent
commit
badd32c2d9
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      roxbot/err_handle.py
  2. +0
    -1
      roxbot/settings/settings.py

+ 1
- 1
roxbot/err_handle.py View File

@@ -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 View File

@@ -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])

Loading…
Cancel
Save