Update "copyright notice" for Dev cog (#5527)

This commit is contained in:
jack1142 2022-01-10 17:52:20 +01:00 committed by GitHub
parent 6ff844e605
commit cfa8f15faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,15 @@
"""
The original implementation of this cog was heavily based on
RoboDanny's REPL cog which can be found here:
https://github.com/Rapptz/RoboDanny/blob/f13e1c9a6a7205e50de6f91fa5326fc7113332d3/cogs/repl.py
Copyright (c) 2017-present Cog Creators
Copyright (c) 2016-2017 Rapptz
The original copy was distributed under MIT License and this derivative work
is distributed under GNU GPL Version 3.
"""
import ast import ast
import asyncio import asyncio
import aiohttp import aiohttp
@ -18,14 +30,6 @@ from .i18n import Translator, cog_i18n
from .utils.chat_formatting import pagify from .utils.chat_formatting import pagify
from .utils.predicates import MessagePredicate from .utils.predicates import MessagePredicate
"""
Notice:
95% of the below code came from R.Danny which can be found here:
https://github.com/Rapptz/RoboDanny/blob/master/cogs/repl.py
"""
_ = Translator("Dev", __file__) _ = Translator("Dev", __file__)
START_CODE_BLOCK_RE = re.compile(r"^((```py(thon)?)(?=\s)|(```))") START_CODE_BLOCK_RE = re.compile(r"^((```py(thon)?)(?=\s)|(```))")