Move checks and errcodes to a new folder called helpers

This commit is contained in:
Ave Ozkal 2018-12-26 14:36:55 +03:00
parent 679f3ea490
commit 338aa80c58
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
10 changed files with 9 additions and 8 deletions

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>

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:

View file

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

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

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:

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:

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:

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 = """