From 5a7acbfe3eaee5e0c8c13d33b014d3ad4dd0bc13 Mon Sep 17 00:00:00 2001 From: io mintz Date: Tue, 12 May 2020 23:55:08 +0000 Subject: [PATCH] add copyright headers to all files --- README.md | 5 +++++ bot.py | 16 +++++++++++++++- cogs/emote.py | 16 ++++++++++++++-- cogs/meta.py | 16 ++++++++++++++-- config.example.py | 2 +- utils/__init__.py | 1 - utils/archive.py | 15 ++++++++++++++- utils/converter.py | 15 +++++++++++++++ utils/emote.py | 16 ++++++++++++++-- utils/errors.py | 15 +++++++++++++++ utils/image.py | 16 ++++++++++++++-- utils/misc.py | 16 ++++++++++++++-- utils/paginator.py | 15 +++++++++++++++ 13 files changed, 150 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 250b8d1..e1d6b81 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,8 @@ To add the bot to your server, visit https://discordapp.com/oauth2/authorize?cli

@Emote Manager rename old_name new_name will rename :old_name: to :new_name:.

+ + +## License + +AGPLv3, see LICENSE.md. © 2018–2020 io mintz diff --git a/bot.py b/bot.py index f5b68f8..3e8b319 100755 --- a/bot.py +++ b/bot.py @@ -1,5 +1,19 @@ #!/usr/bin/env python3 -# encoding: utf-8 + +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import logging import traceback diff --git a/cogs/emote.py b/cogs/emote.py index 2e0d058..f40b939 100644 --- a/cogs/emote.py +++ b/cogs/emote.py @@ -1,5 +1,17 @@ -#!/usr/bin/env python3 -# encoding: utf-8 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import asyncio import cgi diff --git a/cogs/meta.py b/cogs/meta.py index 35abf63..efc8ba0 100644 --- a/cogs/meta.py +++ b/cogs/meta.py @@ -1,5 +1,17 @@ -#!/usr/bin/env python3 -# encoding: utf-8 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import contextlib diff --git a/config.example.py b/config.example.py index a290e42..9391115 100644 --- a/config.example.py +++ b/config.example.py @@ -43,7 +43,7 @@ # You can obtain these ones from the discordbots.org server under the name "tickNo" and "tickYes" # but I uploaded them to my test server # so that both the staging and the stable versions of the bot can use them - 'response_emotes': { + 'response_emojis': { 'success': { # emotes used to indicate success or failure False: '<:error:478164511879069707>', True: '<:success:478164452261363712>' diff --git a/utils/__init__.py b/utils/__init__.py index 2e0a62c..d26896f 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# encoding: utf-8 from .misc import * from . import archive diff --git a/utils/archive.py b/utils/archive.py index 0224132..b58fbaf 100644 --- a/utils/archive.py +++ b/utils/archive.py @@ -1,4 +1,17 @@ -#!/usr/bin/env python3 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import asyncio import collections diff --git a/utils/converter.py b/utils/converter.py index 510bbff..c2ee2bc 100644 --- a/utils/converter.py +++ b/utils/converter.py @@ -1,3 +1,18 @@ +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . + _emote_type_predicates = { '': lambda _: True, # allow usage as a "consume rest" converter 'all': lambda _: True, diff --git a/utils/emote.py b/utils/emote.py index 66fc02e..adcb459 100644 --- a/utils/emote.py +++ b/utils/emote.py @@ -1,5 +1,17 @@ -#!/usr/bin/env python3 -# encoding: utf-8 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import re diff --git a/utils/errors.py b/utils/errors.py index 1cb5236..adf7a3e 100644 --- a/utils/errors.py +++ b/utils/errors.py @@ -1,3 +1,18 @@ +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . + import asyncio from discord.ext import commands diff --git a/utils/image.py b/utils/image.py index 5f98ae3..0a9cf6e 100755 --- a/utils/image.py +++ b/utils/image.py @@ -1,5 +1,17 @@ -#!/usr/bin/env python3 -# encoding: utf-8 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . import asyncio import base64 diff --git a/utils/misc.py b/utils/misc.py index d0d60a7..f88b2d1 100644 --- a/utils/misc.py +++ b/utils/misc.py @@ -1,5 +1,17 @@ -#!/usr/bin/env python3 -# encoding: utf-8 +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . """various utilities for use within the bot""" diff --git a/utils/paginator.py b/utils/paginator.py index 6fc6993..0bf4959 100644 --- a/utils/paginator.py +++ b/utils/paginator.py @@ -1,3 +1,18 @@ +# © 2018–2020 io mintz +# +# Emote Manager is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Emote Manager 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Emote Manager. If not, see . + import asyncio import contextlib import typing