1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

add copyright headers to all files

This commit is contained in:
io mintz 2020-05-12 23:55:08 +00:00
parent a7d9c03786
commit 5a7acbfe3e
13 changed files with 150 additions and 14 deletions

View file

@ -42,3 +42,8 @@ To add the bot to your server, visit https://discordapp.com/oauth2/authorize?cli
<p> <p>
<code>@Emote Manager rename old_name new_name</code> will rename :old_name: to :new_name:. <code>@Emote Manager rename old_name new_name</code> will rename :old_name: to :new_name:.
</p> </p>
## License
AGPLv3, see LICENSE.md. © 20182020 io mintz <io@mintz.cc>

16
bot.py
View file

@ -1,5 +1,19 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# encoding: utf-8
# © 20182020 io mintz <io@mintz.cc>
#
# 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 <https://www.gnu.org/licenses/>.
import logging import logging
import traceback import traceback

View file

@ -1,5 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
# encoding: utf-8 #
# 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 <https://www.gnu.org/licenses/>.
import asyncio import asyncio
import cgi import cgi

View file

@ -1,5 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
# encoding: utf-8 #
# 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 <https://www.gnu.org/licenses/>.
import contextlib import contextlib

View file

@ -43,7 +43,7 @@
# You can obtain these ones from the discordbots.org server under the name "tickNo" and "tickYes" # You can obtain these ones from the discordbots.org server under the name "tickNo" and "tickYes"
# but I uploaded them to my test server # but I uploaded them to my test server
# so that both the staging and the stable versions of the bot can use them # 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 'success': { # emotes used to indicate success or failure
False: '<:error:478164511879069707>', False: '<:error:478164511879069707>',
True: '<:success:478164452261363712>' True: '<:success:478164452261363712>'

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# encoding: utf-8
from .misc import * from .misc import *
from . import archive from . import archive

View file

@ -1,4 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
#
# 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 <https://www.gnu.org/licenses/>.
import asyncio import asyncio
import collections import collections

View file

@ -1,3 +1,18 @@
# © 20182020 io mintz <io@mintz.cc>
#
# 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 <https://www.gnu.org/licenses/>.
_emote_type_predicates = { _emote_type_predicates = {
'': lambda _: True, # allow usage as a "consume rest" converter '': lambda _: True, # allow usage as a "consume rest" converter
'all': lambda _: True, 'all': lambda _: True,

View file

@ -1,5 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
# encoding: utf-8 #
# 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 <https://www.gnu.org/licenses/>.
import re import re

View file

@ -1,3 +1,18 @@
# © 20182020 io mintz <io@mintz.cc>
#
# 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 <https://www.gnu.org/licenses/>.
import asyncio import asyncio
from discord.ext import commands from discord.ext import commands

View file

@ -1,5 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
# encoding: utf-8 #
# 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 <https://www.gnu.org/licenses/>.
import asyncio import asyncio
import base64 import base64

View file

@ -1,5 +1,17 @@
#!/usr/bin/env python3 # © 20182020 io mintz <io@mintz.cc>
# encoding: utf-8 #
# 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 <https://www.gnu.org/licenses/>.
"""various utilities for use within the bot""" """various utilities for use within the bot"""

View file

@ -1,3 +1,18 @@
# © 20182020 io mintz <io@mintz.cc>
#
# 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 <https://www.gnu.org/licenses/>.
import asyncio import asyncio
import contextlib import contextlib
import typing import typing