Renamed src package to sebimachine.
- Gave the package a descriptive name.
- Passed over with black once more.
- Created setup.py to install dependencies.
- Updated author to reflect repo ownership to Dusty.
- Changed `git` command to use the __url__ attribute.
- Changed music to use ogg vorbis instead of mp3, purely for
performance.
- Tried to make sure nothing broke.
- Updated dockerfile. Pretty sure we don't need it though...
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env python3.6
|
||||
# -*- coding: utf-8 -*-
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: <encoding name> -*-
|
||||
|
||||
import json
|
||||
import discord
|
||||
import os
|
||||
|
||||
|
||||
class LoadConfig:
|
||||
"""
|
||||
All config is collected here
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
# Read our config file
|
||||
with open("src/config/Config.json") as fp:
|
||||
self.config = json.load(fp)
|
||||
|
||||
# Initialize config
|
||||
|
||||
self.ownerlist = self.config["ownerlist"]
|
||||
self.defaultprefix = self.config["prefix"]
|
||||
self.version = self.config["version"]
|
||||
self.display_name = self.config["display_name"]
|
||||
self.maintenance = self.config["maintenance"]
|
||||
self.embed_color = discord.Colour(0x00FFFF)
|
||||
self.error_color = discord.Colour(0xFF0000)
|
||||
if self.maintenance == "False":
|
||||
self.maintenance = False
|
||||
else:
|
||||
self.maintenance = True
|
||||
Reference in New Issue
Block a user