Skip to content

Commit

Permalink
Bump all copyright notices
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Dec 6, 2021
1 parent 650f10b commit e1b3212
Show file tree
Hide file tree
Showing 50 changed files with 736 additions and 715 deletions.
24 changes: 12 additions & 12 deletions launch.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 2021 iiPython

# Modules
from prism import PrismBot
from dotenv import load_dotenv

# Initialization
load_dotenv()
bot = PrismBot()

# Launch bot
bot.launch_bot()
# Copyright 2021-xx iiPython

# Modules
from prism import PrismBot
from dotenv import load_dotenv

# Initialization
load_dotenv()
bot = PrismBot()

# Launch bot
bot.launch_bot()
20 changes: 10 additions & 10 deletions prism/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
__author__ = "iiPython"
__license__ = "MIT"
__copyright__ = "(c) 2021 iiPython"
__version__ = "1.0.7"

from .logging import logger
from .core.bot import PrismBot

import logging
logging.basicConfig(level = logging.CRITICAL)
__author__ = "iiPython"
__license__ = "MIT"
__copyright__ = "(c) 2021 iiPython"
__version__ = "1.0.7"

from .logging import logger
from .core.bot import PrismBot

import logging
logging.basicConfig(level = logging.CRITICAL)
2 changes: 1 addition & 1 deletion prism/cmds/currency/balance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/banks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/beg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/create.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
from discord.ext import commands
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/daily.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import math
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/pay.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/shop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/slots.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/currency/work.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import math
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/dev/eval.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import ast
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/ascii.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/dict.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/eightball.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/guess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import math
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/nhie.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/rps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/sock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import random
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/fun/trivia.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import math
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/calendar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/customize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
from discord.ext import commands
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/element.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import csv
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/inventory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/invite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/ping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
from discord.ext import commands
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/stats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import os
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/general/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
from prism import __version__
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/image/meme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import os
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/image/pfp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/image/triggered.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import os
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/mod/ban.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/mod/kick.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
2 changes: 1 addition & 1 deletion prism/cmds/mod/purge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython

# Modules
import discord
Expand Down
96 changes: 48 additions & 48 deletions prism/config.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
# Copyright 2021 iiPython

# Modules
import os
import json
from typing import Any
from .logging import logger

# Config class
class Configuration(object):
def __init__(self) -> None:
self.default = {
"debug": False
}
self.config = self.default | self._load_config()

def _load_config(self) -> dict:
if not os.path.exists("config.json"):
return logger.log("crash", "No config.json file exists, please create it and relaunch.")

with open("config.json", "r") as config_file:
try:
raw_config = json.loads(config_file.read())

except json.JSONDecodeError:
return logger.log("crash", "Failed while attempting to load config.json")

return raw_config

def get(self, key: Any) -> Any:
if isinstance(key, list):
value = self.config[key[0]]
for k in key[1:]:
value = value[k]

else:
value = self.config[key]

return value

def set(self, key: Any, value: Any) -> None:
self.config[key] = value

def merge(self, data: dict) -> None:
self.config = self.config | data

# Initialization
config = Configuration()
# Copyright 2021-xx iiPython

# Modules
import os
import json
from typing import Any
from .logging import logger

# Config class
class Configuration(object):
def __init__(self) -> None:
self.default = {
"debug": False
}
self.config = self.default | self._load_config()

def _load_config(self) -> dict:
if not os.path.exists("config.json"):
return logger.log("crash", "No config.json file exists, please create it and relaunch.")

with open("config.json", "r") as config_file:
try:
raw_config = json.loads(config_file.read())

except json.JSONDecodeError:
return logger.log("crash", "Failed while attempting to load config.json")

return raw_config

def get(self, key: Any) -> Any:
if isinstance(key, list):
value = self.config[key[0]]
for k in key[1:]:
value = value[k]

else:
value = self.config[key]

return value

def set(self, key: Any, value: Any) -> None:
self.config[key] = value

def merge(self, data: dict) -> None:
self.config = self.config | data

# Initialization
config = Configuration()
2 changes: 1 addition & 1 deletion prism/core/banks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 iiPython
# Copyright 2021-xx iiPython
# Helper functions for bank management

# Modules
Expand Down
Loading

0 comments on commit e1b3212

Please sign in to comment.