Fix issue with gitignore, (i hope), Fixed import error. revert raatty change in self.ownerlist. still not working
This commit is contained in:
parent
523a2b094c
commit
4540c36d22
4
.gitignore
vendored
4
.gitignore
vendored
@ -108,8 +108,8 @@ venv.bak/
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
|
||||
/src/config/Config.json
|
||||
/src/config/PrivateConfig.json
|
||||
src/config/Config.json
|
||||
src/config/PrivateConfig.json
|
||||
|
||||
# Ignore dockerfiles
|
||||
docker-compose.yml
|
||||
@ -30,11 +30,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import logging
|
||||
from ..shared_libs.utils import paginate, run_command, loggable
|
||||
from src.shared_libs.utils import paginate, run_command
|
||||
from src.shared_libs.loggable import Loggable
|
||||
|
||||
import asyncio
|
||||
|
||||
|
||||
class Git(loggable.Loggable):
|
||||
class Git(Loggable):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
|
||||
@ -17,8 +17,6 @@ class LoadConfig:
|
||||
# Initialize config
|
||||
|
||||
self.ownerlist = self.config["ownerlist"]
|
||||
if self.ownerlist == []:
|
||||
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
|
||||
self.defaultprefix = self.config["prefix"]
|
||||
self.version = self.config["version"]
|
||||
self.display_name = self.config["display_name"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user