diff --git a/.licor.list b/.licor.list new file mode 100644 index 0000000..b3ddab0 --- /dev/null +++ b/.licor.list @@ -0,0 +1,6 @@ +/home/daniel/informatik/python/mathbot/mathbot/__init__.py +/home/daniel/informatik/python/mathbot/mathbot/main.py +/home/daniel/informatik/python/mathbot/mathbot/static.py +/home/daniel/informatik/python/mathbot/mathbot/__main__.py +/home/daniel/informatik/python/mathbot/mathbot/rendering.py +/home/daniel/informatik/python/mathbot/mathbot/bot.py \ No newline at end of file diff --git a/mathbot/__init__.py b/mathbot/__init__.py index e69de29..ca97a7a 100644 --- a/mathbot/__init__.py +++ b/mathbot/__init__.py @@ -0,0 +1,18 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + diff --git a/mathbot/__main__.py b/mathbot/__main__.py index 51896e0..52330d9 100644 --- a/mathbot/__main__.py +++ b/mathbot/__main__.py @@ -1,3 +1,21 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + from .main import main import sys, logging diff --git a/mathbot/bot.py b/mathbot/bot.py index 14b438e..2068ab2 100644 --- a/mathbot/bot.py +++ b/mathbot/bot.py @@ -1,3 +1,21 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + from telegram.ext import RegexHandler from .rendering import get_png from .static import static_content diff --git a/mathbot/main.py b/mathbot/main.py index 2c8e100..dc9a9d9 100644 --- a/mathbot/main.py +++ b/mathbot/main.py @@ -1,3 +1,21 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + from telegram.ext import Updater, CommandHandler, RegexHandler from . import bot diff --git a/mathbot/rendering.py b/mathbot/rendering.py index 1cc34b4..d2c594e 100644 --- a/mathbot/rendering.py +++ b/mathbot/rendering.py @@ -1,3 +1,21 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + from io import BytesIO import matplotlib.pyplot as plt diff --git a/mathbot/static.py b/mathbot/static.py index 64cf492..93fb125 100644 --- a/mathbot/static.py +++ b/mathbot/static.py @@ -1,3 +1,21 @@ +# Copyright (c) 2018 Daniel Knüttel # +# # +# This file is part of mathbot. # +# # +# mathbot 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, either version 3 of the License, or # +# (at your option) any later version. # +# # +# mathbot 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 mathbot. If not, see . # +# # + _help_text = ''' **RMathBot** -- render LaTeX math commands