Browse Source

Move checks and errcodes to a new folder called helpers

main
Ave Ozkal 2 years ago
parent
commit
d524c58ce4
10 changed files with 9 additions and 8 deletions
  1. +2
    -0
      README.md
  2. +1
    -1
      cogs/admin.py
  3. +0
    -1
      cogs/basic.py
  4. +2
    -2
      cogs/err.py
  5. +1
    -1
      cogs/lockdown.py
  6. +1
    -1
      cogs/meme.py
  7. +1
    -1
      cogs/mod.py
  8. +1
    -1
      cogs/verification.py
  9. +0
    -0
      helpers/checks.py
  10. +0
    -0
      helpers/errcodes.py

+ 2
- 0
README.md View File

@ -25,6 +25,7 @@ ALL FEATURES OF KURISU/ROBOCOP USED IN RESWITCHED ARE NOW SUPPORTED!
<details>
<summary>List of added kurisu/robocop features</summary>
<p>
- [x] .py configs
- [x] membercount command
- [x] Meme commands and pegaswitch (honestly the easiest part)
@ -57,6 +58,7 @@ ALL FEATURES OF KURISU/ROBOCOP USED IN RESWITCHED ARE NOW SUPPORTED!
- [x] Warns: clearwarns-clearwarnsid
- [x] Warns: delwarnid-delwarn
- [x] .serr and .err (thanks tomger!)
</p>
</details>


+ 1
- 1
cogs/admin.py View File

@ -3,7 +3,7 @@ from discord.ext import commands
import traceback
import inspect
import re
from cogs.checks import check_if_bot_manager
from helpers.checks import check_if_bot_manager
class Admin:


+ 0
- 1
cogs/basic.py View File

@ -1,6 +1,5 @@
import time
import config
import discord
from discord.ext import commands


+ 2
- 2
cogs/err.py View File

@ -2,11 +2,11 @@ import re
import discord
from discord.ext import commands
from data.errcodes import *
from helpers.errcodes import *
class Err:
"Everything related to Nintendo 3DS, Wii U and Switch error codes"
"""Everything related to Nintendo 3DS, Wii U and Switch error codes"""
def __init__(self, bot):
self.bot = bot


+ 1
- 1
cogs/lockdown.py View File

@ -1,7 +1,7 @@
from discord.ext import commands
import config
import discord
from cogs.checks import check_if_staff
from helpers.checks import check_if_staff
class Lockdown:


+ 1
- 1
cogs/meme.py View File

@ -2,7 +2,7 @@ import random
import discord
from discord.ext import commands
import math
from cogs.checks import check_if_staff_or_ot
from helpers.checks import check_if_staff_or_ot
class Meme:


+ 1
- 1
cogs/mod.py View File

@ -4,7 +4,7 @@ from discord.ext import commands
import config
import json
import time
from cogs.checks import check_if_staff
from helpers.checks import check_if_staff
class Mod:


+ 1
- 1
cogs/verification.py View File

@ -5,7 +5,7 @@ import config
import random
from inspect import cleandoc
import hashlib
from cogs.checks import check_if_staff
from helpers.checks import check_if_staff
welcome_header = """


cogs/checks.py → helpers/checks.py View File


data/errcodes.py → helpers/errcodes.py View File


Loading…
Cancel
Save