diff --git a/__init__.py b/__init__.py index e69de29..62dfb89 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1,19 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + diff --git a/config.ci.py b/config.ci.py index 4761698..2705a41 100644 --- a/config.ci.py +++ b/config.ci.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + MODE = 'CI' diff --git a/config.example.py b/config.example.py index ce7001d..e6b74b8 100644 --- a/config.example.py +++ b/config.example.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + MODE = 'Development' diff --git a/litecord/__init__.py b/litecord/__init__.py index e69de29..62dfb89 100644 --- a/litecord/__init__.py +++ b/litecord/__init__.py @@ -0,0 +1,19 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + diff --git a/litecord/auth.py b/litecord/auth.py index f631345..ac0e8bb 100644 --- a/litecord/auth.py +++ b/litecord/auth.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import base64 import binascii from random import randint diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index 6f9c699..701bbd2 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .gateway import bp as gateway from .auth import bp as auth from .users import bp as users diff --git a/litecord/blueprints/auth.py b/litecord/blueprints/auth.py index 7049fa4..28eccd5 100644 --- a/litecord/blueprints/auth.py +++ b/litecord/blueprints/auth.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import base64 import itsdangerous diff --git a/litecord/blueprints/channel/__init__.py b/litecord/blueprints/channel/__init__.py index ac7428a..c5c0ddb 100644 --- a/litecord/blueprints/channel/__init__.py +++ b/litecord/blueprints/channel/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .messages import bp as channel_messages from .reactions import bp as channel_reactions from .pins import bp as channel_pins diff --git a/litecord/blueprints/channel/dm_checks.py b/litecord/blueprints/channel/dm_checks.py index 155f5a1..ade19f7 100644 --- a/litecord/blueprints/channel/dm_checks.py +++ b/litecord/blueprints/channel/dm_checks.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import current_app as app from litecord.errors import Forbidden diff --git a/litecord/blueprints/channel/messages.py b/litecord/blueprints/channel/messages.py index 683d4ea..f1c8a5c 100644 --- a/litecord/blueprints/channel/messages.py +++ b/litecord/blueprints/channel/messages.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import re from quart import Blueprint, request, current_app as app, jsonify diff --git a/litecord/blueprints/channel/pins.py b/litecord/blueprints/channel/pins.py index 851fb0a..7e31346 100644 --- a/litecord/blueprints/channel/pins.py +++ b/litecord/blueprints/channel/pins.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, current_app as app, jsonify from litecord.auth import token_check diff --git a/litecord/blueprints/channel/reactions.py b/litecord/blueprints/channel/reactions.py index 0036070..c7b1efe 100644 --- a/litecord/blueprints/channel/reactions.py +++ b/litecord/blueprints/channel/reactions.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from enum import IntEnum from quart import Blueprint, request, current_app as app, jsonify diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index dd2539a..4db72d9 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import time from quart import Blueprint, request, current_app as app, jsonify diff --git a/litecord/blueprints/checks.py b/litecord/blueprints/checks.py index b86db89..e61dfc4 100644 --- a/litecord/blueprints/checks.py +++ b/litecord/blueprints/checks.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import current_app as app from litecord.enums import ChannelType, GUILD_CHANS diff --git a/litecord/blueprints/dms.py b/litecord/blueprints/dms.py index 011b652..078bb87 100644 --- a/litecord/blueprints/dms.py +++ b/litecord/blueprints/dms.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ blueprint for direct messages """ diff --git a/litecord/blueprints/gateway.py b/litecord/blueprints/gateway.py index a301cac..9434605 100644 --- a/litecord/blueprints/gateway.py +++ b/litecord/blueprints/gateway.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import time from quart import Blueprint, jsonify, current_app as app diff --git a/litecord/blueprints/guild/__init__.py b/litecord/blueprints/guild/__init__.py index 8bbf4d9..73d65aa 100644 --- a/litecord/blueprints/guild/__init__.py +++ b/litecord/blueprints/guild/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .roles import bp as guild_roles from .members import bp as guild_members from .channels import bp as guild_channels diff --git a/litecord/blueprints/guild/channels.py b/litecord/blueprints/guild/channels.py index f6417dd..43c3e7e 100644 --- a/litecord/blueprints/guild/channels.py +++ b/litecord/blueprints/guild/channels.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, request, current_app as app, jsonify from litecord.blueprints.auth import token_check diff --git a/litecord/blueprints/guild/emoji.py b/litecord/blueprints/guild/emoji.py index b85e59a..f92f73e 100644 --- a/litecord/blueprints/guild/emoji.py +++ b/litecord/blueprints/guild/emoji.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, jsonify, current_app as app, request from litecord.auth import token_check diff --git a/litecord/blueprints/guild/members.py b/litecord/blueprints/guild/members.py index 5b87f83..c396d23 100644 --- a/litecord/blueprints/guild/members.py +++ b/litecord/blueprints/guild/members.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, request, current_app as app, jsonify from litecord.blueprints.auth import token_check diff --git a/litecord/blueprints/guild/mod.py b/litecord/blueprints/guild/mod.py index 48d23ca..97978dc 100644 --- a/litecord/blueprints/guild/mod.py +++ b/litecord/blueprints/guild/mod.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, request, current_app as app, jsonify from litecord.blueprints.auth import token_check diff --git a/litecord/blueprints/guild/roles.py b/litecord/blueprints/guild/roles.py index 7c9802c..c9007cc 100644 --- a/litecord/blueprints/guild/roles.py +++ b/litecord/blueprints/guild/roles.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import List, Dict from quart import Blueprint, request, current_app as app, jsonify diff --git a/litecord/blueprints/guilds.py b/litecord/blueprints/guilds.py index 92de6df..b2b5b5f 100644 --- a/litecord/blueprints/guilds.py +++ b/litecord/blueprints/guilds.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, request, current_app as app, jsonify from litecord.blueprints.guild.channels import create_guild_channel diff --git a/litecord/blueprints/icons.py b/litecord/blueprints/icons.py index c9ffcf3..6f3cb34 100644 --- a/litecord/blueprints/icons.py +++ b/litecord/blueprints/icons.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from os.path import splitext from quart import Blueprint, current_app as app, send_file, request diff --git a/litecord/blueprints/invites.py b/litecord/blueprints/invites.py index 9377d0d..47967b5 100644 --- a/litecord/blueprints/invites.py +++ b/litecord/blueprints/invites.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import datetime import base64 import os diff --git a/litecord/blueprints/nodeinfo.py b/litecord/blueprints/nodeinfo.py index cb1145c..ac9e891 100644 --- a/litecord/blueprints/nodeinfo.py +++ b/litecord/blueprints/nodeinfo.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, current_app as app, jsonify, request bp = Blueprint('nodeinfo', __name__) diff --git a/litecord/blueprints/relationships.py b/litecord/blueprints/relationships.py index 547ac63..e44312d 100644 --- a/litecord/blueprints/relationships.py +++ b/litecord/blueprints/relationships.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, jsonify, request, current_app as app from asyncpg import UniqueViolationError diff --git a/litecord/blueprints/science.py b/litecord/blueprints/science.py index e8f16bb..faff229 100644 --- a/litecord/blueprints/science.py +++ b/litecord/blueprints/science.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, jsonify bp = Blueprint('science', __name__) diff --git a/litecord/blueprints/static.py b/litecord/blueprints/static.py index 244b645..6b5777c 100644 --- a/litecord/blueprints/static.py +++ b/litecord/blueprints/static.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, current_app as app, render_template_string from pathlib import Path diff --git a/litecord/blueprints/user/__init__.py b/litecord/blueprints/user/__init__.py index e7a1952..7993aac 100644 --- a/litecord/blueprints/user/__init__.py +++ b/litecord/blueprints/user/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .billing import bp as user_billing from .settings import bp as user_settings from .fake_store import bp as fake_store diff --git a/litecord/blueprints/user/billing.py b/litecord/blueprints/user/billing.py index 77a8093..9682851 100644 --- a/litecord/blueprints/user/billing.py +++ b/litecord/blueprints/user/billing.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import json import datetime from enum import Enum diff --git a/litecord/blueprints/user/billing_job.py b/litecord/blueprints/user/billing_job.py index c896e9d..b79060e 100644 --- a/litecord/blueprints/user/billing_job.py +++ b/litecord/blueprints/user/billing_job.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ this file only serves the periodic payment job code. """ diff --git a/litecord/blueprints/user/fake_store.py b/litecord/blueprints/user/fake_store.py index 8eed536..ba2834b 100644 --- a/litecord/blueprints/user/fake_store.py +++ b/litecord/blueprints/user/fake_store.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ fake routes for discord store """ diff --git a/litecord/blueprints/user/settings.py b/litecord/blueprints/user/settings.py index ac49800..2f8c71c 100644 --- a/litecord/blueprints/user/settings.py +++ b/litecord/blueprints/user/settings.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, jsonify, request, current_app as app from litecord.auth import token_check diff --git a/litecord/blueprints/users.py b/litecord/blueprints/users.py index f9a5a0a..b724432 100644 --- a/litecord/blueprints/users.py +++ b/litecord/blueprints/users.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import random from os import urandom diff --git a/litecord/blueprints/voice.py b/litecord/blueprints/voice.py index 94dd71c..7f921ae 100644 --- a/litecord/blueprints/voice.py +++ b/litecord/blueprints/voice.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint, jsonify bp = Blueprint('voice', __name__) diff --git a/litecord/blueprints/webhooks.py b/litecord/blueprints/webhooks.py index b8c1e8f..2b6ab5a 100644 --- a/litecord/blueprints/webhooks.py +++ b/litecord/blueprints/webhooks.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import Blueprint bp = Blueprint('webhooks', __name__) diff --git a/litecord/dispatcher.py b/litecord/dispatcher.py index 006a845..1891e75 100644 --- a/litecord/dispatcher.py +++ b/litecord/dispatcher.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import List, Any from logbook import Logger diff --git a/litecord/embed/__init__.py b/litecord/embed/__init__.py index b77baa8..4931b0a 100644 --- a/litecord/embed/__init__.py +++ b/litecord/embed/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .sanitizer import sanitize_embed __all__ = ['sanitize_embed'] diff --git a/litecord/embed/sanitizer.py b/litecord/embed/sanitizer.py index b3536e5..1f8463f 100644 --- a/litecord/embed/sanitizer.py +++ b/litecord/embed/sanitizer.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ litecord.embed.sanitizer sanitize embeds by giving common values diff --git a/litecord/embed/schemas.py b/litecord/embed/schemas.py index b26788e..25120c6 100644 --- a/litecord/embed/schemas.py +++ b/litecord/embed/schemas.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ litecord.embed.schemas - embed input validators. """ diff --git a/litecord/enums.py b/litecord/enums.py index fe803b9..f2fd798 100644 --- a/litecord/enums.py +++ b/litecord/enums.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import inspect from enum import Enum, IntEnum diff --git a/litecord/errors.py b/litecord/errors.py index 70afcf9..8a27c43 100644 --- a/litecord/errors.py +++ b/litecord/errors.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + class LitecordError(Exception): status_code = 500 diff --git a/litecord/gateway/__init__.py b/litecord/gateway/__init__.py index 4835a19..a7990c6 100644 --- a/litecord/gateway/__init__.py +++ b/litecord/gateway/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + __all__ = ['websocket_handler'] from .gateway import websocket_handler diff --git a/litecord/gateway/errors.py b/litecord/gateway/errors.py index 583e397..dc3bdc7 100644 --- a/litecord/gateway/errors.py +++ b/litecord/gateway/errors.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from litecord.errors import WebsocketClose diff --git a/litecord/gateway/gateway.py b/litecord/gateway/gateway.py index 9d5a354..e028865 100644 --- a/litecord/gateway/gateway.py +++ b/litecord/gateway/gateway.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import urllib.parse from .websocket import GatewayWebsocket diff --git a/litecord/gateway/opcodes.py b/litecord/gateway/opcodes.py index 8e91ead..6683771 100644 --- a/litecord/gateway/opcodes.py +++ b/litecord/gateway/opcodes.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + class OP: """Gateway OP codes.""" DISPATCH = 0 diff --git a/litecord/gateway/state.py b/litecord/gateway/state.py index 974e2c0..3add609 100644 --- a/litecord/gateway/state.py +++ b/litecord/gateway/state.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import hashlib import os diff --git a/litecord/gateway/state_manager.py b/litecord/gateway/state_manager.py index c245584..47aba10 100644 --- a/litecord/gateway/state_manager.py +++ b/litecord/gateway/state_manager.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio from typing import List diff --git a/litecord/gateway/websocket.py b/litecord/gateway/websocket.py index 3b2eb44..b67f0fe 100644 --- a/litecord/gateway/websocket.py +++ b/litecord/gateway/websocket.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import collections import asyncio import pprint diff --git a/litecord/images.py b/litecord/images.py index 5d6cece..1cb9eb2 100644 --- a/litecord/images.py +++ b/litecord/images.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import os import mimetypes import asyncio diff --git a/litecord/jobs.py b/litecord/jobs.py index c6afec8..b0af94b 100644 --- a/litecord/jobs.py +++ b/litecord/jobs.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio from logbook import Logger diff --git a/litecord/permissions.py b/litecord/permissions.py index 21369d8..686a405 100644 --- a/litecord/permissions.py +++ b/litecord/permissions.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import ctypes from quart import current_app as app diff --git a/litecord/presence.py b/litecord/presence.py index d2e0400..332c191 100644 --- a/litecord/presence.py +++ b/litecord/presence.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import List, Dict, Any from random import choice diff --git a/litecord/pubsub/__init__.py b/litecord/pubsub/__init__.py index 31388de..71757ed 100644 --- a/litecord/pubsub/__init__.py +++ b/litecord/pubsub/__init__.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .guild import GuildDispatcher from .member import MemberDispatcher from .user import UserDispatcher diff --git a/litecord/pubsub/channel.py b/litecord/pubsub/channel.py index 38bb273..41dae3a 100644 --- a/litecord/pubsub/channel.py +++ b/litecord/pubsub/channel.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import Any from logbook import Logger diff --git a/litecord/pubsub/dispatcher.py b/litecord/pubsub/dispatcher.py index cee9f51..9cb4394 100644 --- a/litecord/pubsub/dispatcher.py +++ b/litecord/pubsub/dispatcher.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ litecord.pubsub.dispatcher: main dispatcher class """ diff --git a/litecord/pubsub/friend.py b/litecord/pubsub/friend.py index 4e3fa54..804fe7a 100644 --- a/litecord/pubsub/friend.py +++ b/litecord/pubsub/friend.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from logbook import Logger from .dispatcher import DispatcherWithState diff --git a/litecord/pubsub/guild.py b/litecord/pubsub/guild.py index d86edd3..e0b2bd3 100644 --- a/litecord/pubsub/guild.py +++ b/litecord/pubsub/guild.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import Any from logbook import Logger diff --git a/litecord/pubsub/lazy_guild.py b/litecord/pubsub/lazy_guild.py index ef7c65e..afca7a0 100644 --- a/litecord/pubsub/lazy_guild.py +++ b/litecord/pubsub/lazy_guild.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ Main code for Lazy Guild implementation in litecord. """ diff --git a/litecord/pubsub/member.py b/litecord/pubsub/member.py index 8b6f351..744300e 100644 --- a/litecord/pubsub/member.py +++ b/litecord/pubsub/member.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .dispatcher import Dispatcher diff --git a/litecord/pubsub/user.py b/litecord/pubsub/user.py index 78811b3..2e24fb5 100644 --- a/litecord/pubsub/user.py +++ b/litecord/pubsub/user.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .dispatcher import Dispatcher diff --git a/litecord/ratelimits/bucket.py b/litecord/ratelimits/bucket.py index dabb0ae..253fe75 100644 --- a/litecord/ratelimits/bucket.py +++ b/litecord/ratelimits/bucket.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ main litecord ratelimiting code diff --git a/litecord/ratelimits/handler.py b/litecord/ratelimits/handler.py index 2bcd4cb..2cc84de 100644 --- a/litecord/ratelimits/handler.py +++ b/litecord/ratelimits/handler.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from quart import current_app as app, request from litecord.errors import Ratelimited diff --git a/litecord/ratelimits/main.py b/litecord/ratelimits/main.py index 6467a74..2cc634f 100644 --- a/litecord/ratelimits/main.py +++ b/litecord/ratelimits/main.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from litecord.ratelimits.bucket import Ratelimit """ diff --git a/litecord/schemas.py b/litecord/schemas.py index 5591d5c..86f1513 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import re from typing import Union, Dict, List diff --git a/litecord/snowflake.py b/litecord/snowflake.py index 2962cd7..8847cc5 100644 --- a/litecord/snowflake.py +++ b/litecord/snowflake.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ snowflake.py - snowflake helper functions diff --git a/litecord/storage.py b/litecord/storage.py index 33d4578..6b99dd3 100644 --- a/litecord/storage.py +++ b/litecord/storage.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import List, Dict, Any from logbook import Logger diff --git a/litecord/system_messages.py b/litecord/system_messages.py index e083902..89d2010 100644 --- a/litecord/system_messages.py +++ b/litecord/system_messages.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from litecord.snowflake import get_snowflake from litecord.enums import MessageType diff --git a/litecord/types.py b/litecord/types.py index 43c21ce..5b527d7 100644 --- a/litecord/types.py +++ b/litecord/types.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + # size units KILOBYTES = 1024 diff --git a/litecord/user_storage.py b/litecord/user_storage.py index 4389607..48cc0e9 100644 --- a/litecord/user_storage.py +++ b/litecord/user_storage.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from typing import List, Dict, Any from logbook import Logger diff --git a/litecord/utils.py b/litecord/utils.py index 1aa693e..13ff38c 100644 --- a/litecord/utils.py +++ b/litecord/utils.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio import json from logbook import Logger diff --git a/manage.py b/manage.py index a65b9d6..1e2d50f 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,23 @@ #!/usr/bin/env python3 +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import logging import sys diff --git a/manage/__init__.py b/manage/__init__.py index e69de29..62dfb89 100644 --- a/manage/__init__.py +++ b/manage/__init__.py @@ -0,0 +1,19 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + diff --git a/manage/cmd/invites.py b/manage/cmd/invites.py index dc1432d..4c6e101 100644 --- a/manage/cmd/invites.py +++ b/manage/cmd/invites.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import datetime import string from random import choice diff --git a/manage/cmd/migration/__init__.py b/manage/cmd/migration/__init__.py index 3a9fa59..ac9846e 100644 --- a/manage/cmd/migration/__init__.py +++ b/manage/cmd/migration/__init__.py @@ -1 +1,20 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .command import setup as migration diff --git a/manage/cmd/migration/command.py b/manage/cmd/migration/command.py index 4f80b64..674f75e 100644 --- a/manage/cmd/migration/command.py +++ b/manage/cmd/migration/command.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import inspect import os from pathlib import Path diff --git a/manage/cmd/tests.py b/manage/cmd/tests.py index cad2b7a..ff0e942 100644 --- a/manage/cmd/tests.py +++ b/manage/cmd/tests.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from tests.credentials import CREDS from litecord.blueprints.auth import create_user from manage.cmd.users import set_user_staff diff --git a/manage/cmd/users.py b/manage/cmd/users.py index 8887fa5..1e2c6d3 100644 --- a/manage/cmd/users.py +++ b/manage/cmd/users.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import base64 import itsdangerous import bcrypt diff --git a/manage/main.py b/manage/main.py index c0b18d6..94b3bb9 100644 --- a/manage/main.py +++ b/manage/main.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio import argparse from sys import argv diff --git a/run.py b/run.py index c016ef8..addd7f6 100644 --- a/run.py +++ b/run.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio import sys diff --git a/setup.py b/setup.py index d0235c2..741cede 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from setuptools import setup setup( diff --git a/tests/common.py b/tests/common.py index 1b5f646..e2a1411 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from .credentials import CREDS async def login(acc_name: str, test_cli): diff --git a/tests/conftest.py b/tests/conftest.py index fa5f937..9f1ceb5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import asyncio import sys import os diff --git a/tests/credentials.py b/tests/credentials.py index fe674b2..4f88acc 100644 --- a/tests/credentials.py +++ b/tests/credentials.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + """ dummy credentials for litecord tests """ diff --git a/tests/test_embeds.py b/tests/test_embeds.py index 0374b7c..876037a 100644 --- a/tests/test_embeds.py +++ b/tests/test_embeds.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + from litecord.schemas import validate from litecord.embed.schemas import EMBED_OBJECT diff --git a/tests/test_gateway.py b/tests/test_gateway.py index f93a1e5..54b3e82 100644 --- a/tests/test_gateway.py +++ b/tests/test_gateway.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import sys import os sys.path.append(os.getcwd()) diff --git a/tests/test_main.py b/tests/test_main.py index 0dbef47..c417b32 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import pytest diff --git a/tests/test_no_tracking.py b/tests/test_no_tracking.py index e8d3033..e05f392 100644 --- a/tests/test_no_tracking.py +++ b/tests/test_no_tracking.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import pytest from tests.common import login diff --git a/tests/test_ratelimits.py b/tests/test_ratelimits.py index 85e9318..7434a3f 100644 --- a/tests/test_ratelimits.py +++ b/tests/test_ratelimits.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import sys import os sys.path.append(os.getcwd()) diff --git a/tests/test_user.py b/tests/test_user.py index fda37e1..1901db3 100644 --- a/tests/test_user.py +++ b/tests/test_user.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import pytest from tests.common import login, get_uid diff --git a/tests/test_websocket.py b/tests/test_websocket.py index b25a165..af80060 100644 --- a/tests/test_websocket.py +++ b/tests/test_websocket.py @@ -1,3 +1,22 @@ +""" + +Litecord +Copyright (C) 2018 Luna Mendes + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +""" + import pytest import websockets import json