├── .replit ├── requirements.txt ├── keep_alive.py ├── pyproject.toml ├── README.md ├── .gitignore ├── bot.py ├── poetry.lock └── LICENSE /.replit: -------------------------------------------------------------------------------- 1 | language = "python3" 2 | run = "python bot.py" -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | aiohttp==3.6.2 2 | APScheduler==3.6.3 3 | astroid==2.4.2 4 | async-timeout==3.0.1 5 | attrs==19.3.0 6 | certifi==2020.12.5 7 | chardet==3.0.4 8 | click==7.1.2 9 | discord.py==1.5.1 10 | Flask==1.1.2 11 | idna==2.10 12 | isort==4.3.21 13 | itsdangerous==1.1.0 14 | Jinja2==2.11.2 15 | lazy-object-proxy==1.4.3 16 | MarkupSafe==1.1.1 17 | mccabe==0.6.1 18 | multidict==4.7.6 19 | pylint==2.5.3 20 | python-http-client==3.2.7 21 | pytz==2020.1 22 | requests==2.25.1 23 | sendgrid==6.4.5 24 | six==1.15.0 25 | starkbank-ecdsa==1.0.0 26 | toml==0.10.1 27 | tzlocal==2.1 28 | urllib3==1.26.2 29 | Werkzeug==1.0.1 30 | wrapt==1.12.1 31 | yarl==1.5.1 32 | -------------------------------------------------------------------------------- /keep_alive.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | from threading import Thread 3 | import sqlite3 4 | from apscheduler.schedulers.background import BackgroundScheduler 5 | 6 | app = Flask('') 7 | 8 | @app.route('/') 9 | def home(): 10 | return "EmailBot is running" 11 | 12 | def progress(status, remaining, total): 13 | print(f'Copied {total-remaining} of {total} pages...') 14 | 15 | def backup_db(): 16 | con = sqlite3.connect('bot.db') 17 | bck = sqlite3.connect('backup.db') 18 | with bck: 19 | con.backup(bck, pages=1, progress=progress) 20 | bck.close() 21 | con.close() 22 | print("Sqlite3 backed up") 23 | 24 | sched = BackgroundScheduler(daemon=True) 25 | sched.add_job(backup_db,'interval',minutes=30) 26 | sched.start() 27 | 28 | def run(): 29 | app.run(host='0.0.0.0',port=8080) 30 | 31 | def keep_alive(): 32 | t = Thread(target=run) 33 | t.start() -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "emailbot" 3 | version = "0.1.0" 4 | description = "" 5 | authors = ["gg2001 "] 6 | license = "MIT License" 7 | 8 | [tool.poetry.dependencies] 9 | python = "^3.8" 10 | aiohttp = "3.6.2" 11 | APScheduler = "3.6.3" 12 | async-timeout = "3.0.1" 13 | attrs = "19.3.0" 14 | chardet = "3.0.4" 15 | click = "7.1.2" 16 | "discord.py" = "1.5.1" 17 | Flask = "1.1.2" 18 | idna = "2.10" 19 | itsdangerous = "1.1.0" 20 | Jinja2 = "2.11.2" 21 | MarkupSafe = "1.1.1" 22 | multidict = "4.7.6" 23 | python-http-client = "3.2.7" 24 | pytz = "2020.1" 25 | sendgrid = "6.4.5" 26 | six = "1.15.0" 27 | starkbank-ecdsa = "1.0.0" 28 | tzlocal = "2.1" 29 | Werkzeug = "1.0.1" 30 | yarl = "1.5.1" 31 | astroid = "2.4.2" 32 | certifi = "2020.12.5" 33 | isort = "4.3.21" 34 | lazy-object-proxy = "1.4.3" 35 | mccabe = "0.6.1" 36 | pylint = "2.5.3" 37 | requests = "2.25.1" 38 | toml = "0.10.1" 39 | urllib3 = "1.26.2" 40 | wrapt = "1.12.1" 41 | 42 | [tool.poetry.dev-dependencies] 43 | 44 | [build-system] 45 | requires = ["poetry>=0.12"] 46 | build-backend = "poetry.masonry.api" 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **EmailBot** allows you to verify that your Discord server members have an email address with a specific domain. 2 | 3 | [![Discord](https://img.shields.io/discord/731028346569228288)](https://discord.gg/MfFMxu9) [![License](https://img.shields.io/badge/license-GPL-brightgreen)](LICENSE) 4 | 5 | > Invite: https://discord.com/api/oauth2/authorize?client_id=731027450607435846&permissions=268503040&scope=bot 6 | 7 | > Discord server: https://discord.gg/MfFMxu9 8 | 9 | ## Usage 10 | 11 | After [inviting](https://discord.com/api/oauth2/authorize?client_id=731027450607435846&permissions=268503040&scope=bot) the bot to your server, a domain must be added using `.dominadd domain`. `.vstatus` is the help command: 12 | 13 | ``` 14 | User commands: 15 | .verify -> Sends a DM to the user to verify their email 16 | .vstatus -> This help message 17 | 18 | Admin commands: 19 | - A domain must be added before users can be verified. 20 | - Use .rolechange instead of server settings to change the name of the verified role. 21 | .enableonjoin -> Enables verifying users on join 22 | .disableonjoin -> Disables verifying users on join 23 | .domainadd domain -> Adds an email domain 24 | .domainremove domain -> Removes an email domain 25 | .rolechange role -> Changes the name of the verified role 26 | 27 | Domains: 28 | Verify when a user joins? (default=False): False 29 | Verified role (default=Verified): Verified 30 | ``` 31 | 32 | ## Example 33 | 34 | Let's say you want a Discord server just for people who have a @randomuniversity.edu email address. Add this bot to your server and when someone joins, they will get a DM asking for their @randomuniversity.edu email address. The bot then emails them a verification code. If they reply with the correct code, they get the "Verified" role. 35 | 36 | ## Installation 37 | 38 | Install the dependencies: 39 | 40 | ``` 41 | pip install -r requirements.txt 42 | ``` 43 | 44 | Before running it make sure these environment variables are set. You will need a [Sendgrid](https://sendgrid.com/docs/for-developers/sending-email/api-getting-started/) and [Discord](https://discordpy.readthedocs.io/en/latest/discord.html#discord-intro) account (both are free). Optionally consider making a [Mailgun](https://documentation.mailgun.com/en/latest/quickstart-sending.html#how-to-start-sending-email) account, since this bot uses Mailgun when Sendgrid fails to send an email: 45 | 46 | ``` 47 | export SENDGRID_API_KEY='YOUR_SENDGRID_API_KEY' 48 | export SENDGRID_EMAIL='YOUR_SENDGRID_EMAIL' 49 | export DISCORD_TOKEN='YOUR_DISCORD_TOKEN' 50 | export MAILGUN_API_KEY='YOUR_MAILGUN_API_KEY' 51 | export MAILGUN_DOMAIN='YOUR_MAILGUN_DOMAIN' 52 | ``` 53 | 54 | Run the bot with: 55 | 56 | ``` 57 | python bot.py 58 | ``` 59 | 60 | ## Task list 61 | 62 | - [ ] Separate bot commands/events into cogs and put sqlite commands in a separate file 63 | - [ ] Make the flask server and scheduled sqlite backups optional 64 | - [ ] Allow roles with spaces to be added 65 | - [ ] Make the feature that allows users who leave to retain their Verified role when they join back, optional for the server admin 66 | - [ ] Add a `.unverify member` command 67 | - [ ] Use Role.id instead of Role.name 68 | 69 | ## License 70 | 71 | EmailBot is licensed under [GNU GPL v3](LICENSE). 72 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Begin Global.gitignore (https://github.com/github/gitignore) 2 | ### https://gist.github.com/gg2001/6a838a9bbae3138e0a2f7c1712058708 3 | 4 | ## macOS.gitignore 5 | 6 | # General 7 | .DS_Store 8 | .AppleDouble 9 | .LSOverride 10 | 11 | # Icon must end with two \r 12 | Icon 13 | 14 | # Thumbnails 15 | ._* 16 | 17 | # Files that might appear in the root of a volume 18 | .DocumentRevisions-V100 19 | .fseventsd 20 | .Spotlight-V100 21 | .TemporaryItems 22 | .Trashes 23 | .VolumeIcon.icns 24 | .com.apple.timemachine.donotpresent 25 | 26 | # Directories potentially created on remote AFP share 27 | .AppleDB 28 | .AppleDesktop 29 | Network Trash Folder 30 | Temporary Items 31 | .apdisk 32 | 33 | ## Windows.gitignore 34 | 35 | # Windows thumbnail cache files 36 | Thumbs.db 37 | Thumbs.db:encryptable 38 | ehthumbs.db 39 | ehthumbs_vista.db 40 | 41 | # Dump file 42 | *.stackdump 43 | 44 | # Folder config file 45 | [Dd]esktop.ini 46 | 47 | # Recycle Bin used on file shares 48 | $RECYCLE.BIN/ 49 | 50 | # Windows Installer files 51 | *.cab 52 | *.msi 53 | *.msix 54 | *.msm 55 | *.msp 56 | 57 | # Windows shortcuts 58 | *.lnk 59 | 60 | ## Linux.gitignore 61 | 62 | *~ 63 | 64 | # temporary files which can be created if a process still has a handle open of a deleted file 65 | .fuse_hidden* 66 | 67 | # KDE directory preferences 68 | .directory 69 | 70 | # Linux trash folder which might appear on any partition or disk 71 | .Trash-* 72 | 73 | # .nfs files are created when an open file is removed but is still being accessed 74 | .nfs* 75 | 76 | ## Emacs.gitignore 77 | 78 | # -*- mode: gitignore; -*- 79 | *~ 80 | \#*\# 81 | /.emacs.desktop 82 | /.emacs.desktop.lock 83 | *.elc 84 | auto-save-list 85 | tramp 86 | .\#* 87 | 88 | # Org-mode 89 | .org-id-locations 90 | *_archive 91 | 92 | # flymake-mode 93 | *_flymake.* 94 | 95 | # eshell files 96 | /eshell/history 97 | /eshell/lastdir 98 | 99 | # elpa packages 100 | /elpa/ 101 | 102 | # reftex files 103 | *.rel 104 | 105 | # AUCTeX auto folder 106 | /auto/ 107 | 108 | # cask packages 109 | .cask/ 110 | dist/ 111 | 112 | # Flycheck 113 | flycheck_*.el 114 | 115 | # server auth directory 116 | /server/ 117 | 118 | # projectiles files 119 | .projectile 120 | 121 | # directory configuration 122 | .dir-locals.el 123 | 124 | # network security 125 | /network-security.data 126 | 127 | ## Vim.gitignore 128 | 129 | # Swap 130 | [._]*.s[a-v][a-z] 131 | !*.svg # comment out if you don't need vector files 132 | [._]*.sw[a-p] 133 | [._]s[a-rt-v][a-z] 134 | [._]ss[a-gi-z] 135 | [._]sw[a-p] 136 | 137 | # Session 138 | Session.vim 139 | Sessionx.vim 140 | 141 | # Temporary 142 | .netrwhist 143 | *~ 144 | # Auto-generated tag files 145 | tags 146 | # Persistent undo 147 | [._]*.un~ 148 | 149 | ## VisualStudioCode.gitignore 150 | 151 | .vscode/* 152 | !.vscode/settings.json 153 | !.vscode/tasks.json 154 | !.vscode/launch.json 155 | !.vscode/extensions.json 156 | *.code-workspace 157 | 158 | # Local History for Visual Studio Code 159 | .history/ 160 | 161 | ## SublimeText.gitignore 162 | 163 | # Cache files for Sublime Text 164 | *.tmlanguage.cache 165 | *.tmPreferences.cache 166 | *.stTheme.cache 167 | 168 | # Workspace files are user-specific 169 | *.sublime-workspace 170 | 171 | # Project files should be checked into the repository, unless a significant 172 | # proportion of contributors will probably not be using Sublime Text 173 | # *.sublime-project 174 | 175 | # SFTP configuration file 176 | sftp-config.json 177 | sftp-config-alt*.json 178 | 179 | # Package control specific files 180 | Package Control.last-run 181 | Package Control.ca-list 182 | Package Control.ca-bundle 183 | Package Control.system-ca-bundle 184 | Package Control.cache/ 185 | Package Control.ca-certs/ 186 | Package Control.merged-ca-bundle 187 | Package Control.user-ca-bundle 188 | oscrypto-ca-bundle.crt 189 | bh_unicode_properties.cache 190 | 191 | # Sublime-github package stores a github token in this file 192 | # https://packagecontrol.io/packages/sublime-github 193 | GitHub.sublime-settings 194 | 195 | ### End Global.gitignore 196 | 197 | ### Begin Python.gitignore (https://github.com/github/gitignore/blob/master/Python.gitignore) 198 | 199 | # Byte-compiled / optimized / DLL files 200 | __pycache__/ 201 | *.py[cod] 202 | *$py.class 203 | 204 | # C extensions 205 | *.so 206 | 207 | # Distribution / packaging 208 | .Python 209 | build/ 210 | develop-eggs/ 211 | dist/ 212 | downloads/ 213 | eggs/ 214 | .eggs/ 215 | lib/ 216 | lib64/ 217 | parts/ 218 | sdist/ 219 | var/ 220 | wheels/ 221 | share/python-wheels/ 222 | *.egg-info/ 223 | .installed.cfg 224 | *.egg 225 | MANIFEST 226 | 227 | # PyInstaller 228 | # Usually these files are written by a python script from a template 229 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 230 | *.manifest 231 | *.spec 232 | 233 | # Installer logs 234 | pip-log.txt 235 | pip-delete-this-directory.txt 236 | 237 | # Unit test / coverage reports 238 | htmlcov/ 239 | .tox/ 240 | .nox/ 241 | .coverage 242 | .coverage.* 243 | .cache 244 | nosetests.xml 245 | coverage.xml 246 | *.cover 247 | *.py,cover 248 | .hypothesis/ 249 | .pytest_cache/ 250 | cover/ 251 | 252 | # Translations 253 | *.mo 254 | *.pot 255 | 256 | # Django stuff: 257 | *.log 258 | local_settings.py 259 | db.sqlite3 260 | db.sqlite3-journal 261 | 262 | # Flask stuff: 263 | instance/ 264 | .webassets-cache 265 | 266 | # Scrapy stuff: 267 | .scrapy 268 | 269 | # Sphinx documentation 270 | docs/_build/ 271 | 272 | # PyBuilder 273 | .pybuilder/ 274 | target/ 275 | 276 | # Jupyter Notebook 277 | .ipynb_checkpoints 278 | 279 | # IPython 280 | profile_default/ 281 | ipython_config.py 282 | 283 | # pyenv 284 | # For a library or package, you might want to ignore these files since the code is 285 | # intended to run in multiple environments; otherwise, check them in: 286 | # .python-version 287 | 288 | # pipenv 289 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 290 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 291 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 292 | # install all needed dependencies. 293 | #Pipfile.lock 294 | 295 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 296 | __pypackages__/ 297 | 298 | # Celery stuff 299 | celerybeat-schedule 300 | celerybeat.pid 301 | 302 | # SageMath parsed files 303 | *.sage.py 304 | 305 | # Environments 306 | .env 307 | .venv 308 | env/ 309 | venv/ 310 | ENV/ 311 | env.bak/ 312 | venv.bak/ 313 | 314 | # Spyder project settings 315 | .spyderproject 316 | .spyproject 317 | 318 | # Rope project settings 319 | .ropeproject 320 | 321 | # mkdocs documentation 322 | /site 323 | 324 | # mypy 325 | .mypy_cache/ 326 | .dmypy.json 327 | dmypy.json 328 | 329 | # Pyre type checker 330 | .pyre/ 331 | 332 | # pytype static type analyzer 333 | .pytype/ 334 | 335 | # Cython debug symbols 336 | cython_debug/ 337 | 338 | ### End Python.gitignore 339 | 340 | bot.db 341 | .env 342 | dump.sql 343 | backup.db -------------------------------------------------------------------------------- /bot.py: -------------------------------------------------------------------------------- 1 | import discord 2 | from discord.ext import commands 3 | import sqlite3 4 | import re 5 | import os 6 | import random 7 | from sendgrid import SendGridAPIClient 8 | from sendgrid.helpers.mail import Mail 9 | import requests 10 | from keep_alive import keep_alive 11 | 12 | conn = sqlite3.connect('bot.db') 13 | c = conn.cursor() 14 | c.execute("""CREATE TABLE IF NOT EXISTS users( 15 | userid INT, 16 | guildid INT, 17 | email TEXT, 18 | code INT, 19 | verified INT); 20 | """) 21 | c.execute("""CREATE TABLE IF NOT EXISTS guilds( 22 | guildid INT PRIMARY KEY, 23 | domains TEXT, 24 | onjoin INT, 25 | role TEXT); 26 | """) 27 | conn.commit() 28 | 29 | def get_guild(guildid): 30 | return c.execute("SELECT * FROM guilds WHERE guildid=?", (guildid,)).fetchone() 31 | 32 | def new_guild(guildid, domains="", onjoin=0, role="Verified"): 33 | c.execute("INSERT INTO guilds VALUES (?, ?, ?, ?)", (guildid, domains, onjoin, role)) 34 | conn.commit() 35 | 36 | def get_user_guild(guildid, userid): 37 | return c.execute("SELECT * FROM users WHERE guildid=? AND userid=?", (guildid, userid)).fetchone() 38 | 39 | def get_users_guilds(userid): 40 | return c.execute("SELECT * FROM users WHERE userid=?", (userid,)).fetchall() 41 | 42 | def get_emails_guilds(guildid, email): 43 | return c.execute("SELECT * FROM users WHERE guildid=? AND email=? AND verified=1", (guildid, email)).fetchall() 44 | 45 | def get_users_codes(userid, code): 46 | return c.execute("SELECT * FROM users WHERE userid=? AND code=?", (userid, code)).fetchall() 47 | 48 | def verify_msg(guildname, domains): 49 | if domains == "": 50 | return "{} hasn't setup this bot yet.".format(guildname) 51 | else: 52 | return "To verify yourself on {}, **reply here with your @{} email address**.".format(guildname, domains) 53 | 54 | def new_user(userid, guildid, email="", code=0, verified=0): 55 | c.execute("INSERT INTO users VALUES (?, ?, ?, ?, ?)", (userid, guildid, email, code, verified)) 56 | conn.commit() 57 | 58 | def verify_user(userid, guildid): 59 | c.execute("UPDATE users SET verified=1 WHERE userid=? AND guildid=?", (userid, guildid)) 60 | conn.commit() 61 | 62 | def get_domains(guildid): 63 | return get_guild(guildid)[1] 64 | 65 | def add_domain(domain, guildid): 66 | d_get = get_domains(guildid) 67 | prevdomains = [] 68 | if d_get != "": 69 | prevdomains = get_domains(guildid).split('|') 70 | if domain not in prevdomains: 71 | prevdomains.append(domain) 72 | c.execute("UPDATE guilds SET domains=? WHERE guildid=?", ('|'.join(prevdomains), guildid)) 73 | conn.commit() 74 | 75 | def remove_domain(domain, guildid): 76 | prevdomains = get_domains(guildid).split('|') 77 | if domain in prevdomains: 78 | prevdomains.remove(domain) 79 | c.execute("UPDATE guilds SET domains=? WHERE guildid=?", ('|'.join(prevdomains), guildid)) 80 | conn.commit() 81 | 82 | def change_role(role, guildid): 83 | c.execute("UPDATE guilds SET role=? WHERE guildid=?", (role, guildid)) 84 | conn.commit() 85 | 86 | def enable_onjoin(guildid): 87 | c.execute("UPDATE guilds SET onjoin=? WHERE guildid=?", (1, guildid)) 88 | conn.commit() 89 | 90 | def disable_onjoin(guildid): 91 | c.execute("UPDATE guilds SET onjoin=? WHERE guildid=?", (0, guildid)) 92 | conn.commit() 93 | 94 | def insert_code(code, userid, guildid): 95 | c.execute("UPDATE users SET code=? WHERE userid=? AND guildid=?", (code, userid, guildid)) 96 | conn.commit() 97 | 98 | def insert_email(email, userid, guildid): 99 | c.execute("UPDATE users SET email=? WHERE userid=? AND guildid=?", (email, userid, guildid)) 100 | conn.commit() 101 | 102 | def email_check(email): 103 | regex = "(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])" 104 | if re.search(regex, email): 105 | return True 106 | else: 107 | return False 108 | 109 | def mailgun_send(email_address, verification_code): 110 | return requests.post( 111 | "https://api.mailgun.net/v3/{}/messages".format(os.environ.get('MAILGUN_DOMAIN')), 112 | auth=("api", os.environ.get('MAILGUN_API_KEY')), 113 | data={"from": "EmailBot ".format(os.environ.get('MAILGUN_DOMAIN')), 114 | "to": email_address, 115 | "subject": "Verify your server email", 116 | "text": str(verification_code)}) 117 | 118 | intents = discord.Intents.default() 119 | intents.members = True 120 | 121 | client = commands.Bot(command_prefix = '.', intents=intents) 122 | 123 | @client.event 124 | async def on_ready(): 125 | print('We have logged in as {0.user}'.format(client)) 126 | await client.change_presence(activity=discord.Game(name='.vstatus | github.com/gg2001/EmailBot')) 127 | 128 | @client.event 129 | async def on_member_join(member): 130 | check_on_join = get_guild(member.guild.id) 131 | if check_on_join == None: 132 | new_guild(member.guild.id) 133 | elif check_on_join[2] == 1: 134 | user_prev_verify = get_user_guild(member.guild.id, member.id) 135 | if user_prev_verify == None: 136 | await member.send(verify_msg(member.guild, check_on_join[1])) 137 | new_user(member.id, member.guild.id) 138 | elif user_prev_verify[4] == 0: 139 | await member.send(verify_msg(member.guild, check_on_join[1])) 140 | elif user_prev_verify[4] == 1: 141 | role = discord.utils.get(member.guild.roles, name=check_on_join[3]) 142 | if role: 143 | if role not in member.roles: 144 | await member.add_roles(role) 145 | else: 146 | await member.guild.create_role(name=check_on_join[3]) 147 | role = discord.utils.get(member.guild.roles, name=check_on_join[3]) 148 | await member.add_roles(role) 149 | 150 | @client.event 151 | async def on_message(message): 152 | if message.author == client.user: 153 | return 154 | message_content = message.content.strip() 155 | if (message.guild == None) and email_check(message_content): 156 | users_guilds = get_users_guilds(message.author.id) 157 | if len(users_guilds) >= 1: 158 | guild_list = [i[1] for i in users_guilds if i[4] == 0] 159 | verif_list = [] 160 | for i in guild_list: 161 | email_guild = get_emails_guilds(i, message_content) 162 | if len(email_guild) > 0: 163 | continue 164 | guild_domains = get_domains(i) 165 | if len(guild_domains) == 0: 166 | continue 167 | guild_domains = guild_domains.split('|') 168 | if message_content.split("@")[1] in guild_domains: 169 | verif_list.append(i) 170 | if len(verif_list) >= 1: 171 | random_code = random.randint(100000, 999999) 172 | for i in verif_list: 173 | insert_code(random_code, message.author.id, i) 174 | insert_email(message_content, message.author.id, i) 175 | emailmessage = Mail( 176 | from_email=os.environ.get('SENDGRID_EMAIL'), 177 | to_emails=message_content, 178 | subject='Verify your server email', 179 | html_content=str(random_code)) 180 | try: 181 | sg = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) 182 | response = sg.send(emailmessage) 183 | print(response.status_code) 184 | print(response.body) 185 | print(response.headers) 186 | await message.channel.send("Email sent. **Reply here with your verification code**. If you haven't received it, check your spam folder.") 187 | except Exception as e: 188 | mailgun_email = mailgun_send(message_content, random_code) 189 | if mailgun_email.status_code == 200: 190 | await message.channel.send("Email sent. **Reply here with your verification code**. If you haven't received it, check your spam folder.") 191 | else: 192 | await message.channel.send("Email failed to send.") 193 | else: 194 | await message.channel.send("Invalid email.") 195 | else: 196 | await message.channel.send("You have not joined a server.") 197 | elif (len(message_content) == 6) and message_content.isdigit(): 198 | verif_code = int(message_content) 199 | prev_codes_f = get_users_codes(message.author.id, verif_code) 200 | prev_codes_g = [i for i in prev_codes_f if i[4] == 0] 201 | prev_codes = [] 202 | for i in prev_codes_g: 203 | user_emails = get_emails_guilds(i[1], i[2]) 204 | if len(user_emails) >= 1: 205 | continue 206 | else: 207 | prev_codes.append(i) 208 | if len(prev_codes) >= 1: 209 | for i in prev_codes: 210 | verify_user(message.author.id, i[1]) 211 | curr_guild = client.get_guild(i[1]) 212 | guild_db = get_guild(i[1]) 213 | role = discord.utils.get(curr_guild.roles, name=guild_db[3]) 214 | if role: 215 | member = curr_guild.get_member(message.author.id) 216 | if role not in member.roles: 217 | await member.add_roles(role) 218 | else: 219 | await curr_guild.create_role(name=guild_db[3]) 220 | role = discord.utils.get(curr_guild.roles, name=guild_db[3]) 221 | member = curr_guild.get_member(message.author.id) 222 | await member.add_roles(role) 223 | await message.channel.send("You have been verified on " + client.get_guild(i[1]).name + ".") 224 | else: 225 | await message.channel.send("Incorrect code.") 226 | elif message.guild == None: 227 | await message.channel.send("Invalid email.") 228 | await client.process_commands(message) 229 | 230 | @client.event 231 | async def on_guild_join(guild): 232 | check_on_join = get_guild(guild.id) 233 | if check_on_join == None: 234 | new_guild(guild.id) 235 | 236 | @client.command() 237 | async def rolechange(ctx, role=None): 238 | if role and ctx.guild and ctx.author.guild_permissions.administrator: 239 | role = role.strip() 240 | check_on_join = get_guild(ctx.guild.id) 241 | if check_on_join == None: 242 | new_guild(ctx.guild.id) 243 | check_on_join = get_guild(ctx.guild.id) 244 | role_d = discord.utils.get(ctx.guild.roles, name=check_on_join[3]) 245 | if role_d: 246 | await role_d.edit(name=role) 247 | change_role(role, ctx.guild.id) 248 | await ctx.send("```Verified role: " + get_guild(ctx.guild.id)[3] + "```") 249 | else: 250 | role_d2 = discord.utils.get(ctx.guild.roles, name=role) 251 | if role_d2: 252 | change_role(role, ctx.guild.id) 253 | await ctx.send("```Verified role: " + get_guild(ctx.guild.id)[3] + ".```") 254 | else: 255 | await ctx.guild.create_role(name=role) 256 | change_role(role, ctx.guild.id) 257 | await ctx.send("```Verified role: " + get_guild(ctx.guild.id)[3] + ".```") 258 | 259 | @client.command() 260 | async def domainadd(ctx, domain=None): 261 | if domain and ctx.guild and ctx.author.guild_permissions.administrator: 262 | domain = domain.strip() 263 | check_on_join = get_guild(ctx.guild.id) 264 | if check_on_join == None: 265 | new_guild(ctx.guild.id) 266 | add_domain(domain, ctx.guild.id) 267 | await ctx.send("```Current email domains: " + get_domains(ctx.guild.id) + "```") 268 | 269 | @client.command() 270 | async def domainremove(ctx, domain=None): 271 | if domain and ctx.guild and ctx.author.guild_permissions.administrator: 272 | domain = domain.strip() 273 | check_on_join = get_guild(ctx.guild.id) 274 | if check_on_join == None: 275 | new_guild(ctx.guild.id) 276 | remove_domain(domain, ctx.guild.id) 277 | await ctx.send("```Current email domains: " + get_domains(ctx.guild.id) + "```") 278 | 279 | @client.command() 280 | async def enableonjoin(ctx): 281 | if ctx.guild and ctx.author.guild_permissions.administrator: 282 | check_on_join = get_guild(ctx.guild.id) 283 | if check_on_join == None: 284 | new_guild(ctx.guild.id) 285 | enable_onjoin(ctx.guild.id) 286 | await ctx.send("```Verify when a user joins? True```") 287 | 288 | @client.command() 289 | async def disableonjoin(ctx): 290 | if ctx.guild and ctx.author.guild_permissions.administrator: 291 | check_on_join = get_guild(ctx.guild.id) 292 | if check_on_join == None: 293 | new_guild(ctx.guild.id) 294 | disable_onjoin(ctx.guild.id) 295 | await ctx.send("```Verify when a user joins? False```") 296 | 297 | @client.command() 298 | async def vstatus(ctx): 299 | if ctx.guild: 300 | check_on_join = get_guild(ctx.guild.id) 301 | if check_on_join == None: 302 | new_guild(ctx.guild.id) 303 | check_on_join = get_guild(ctx.guild.id) 304 | on_join = bool(check_on_join[2]) 305 | await ctx.send("```" + 306 | "Ping: " + "{0}ms".format(round(client.latency * 1000)) + "\n" + 307 | "User commands: " + "\n" + 308 | " .verify -> Sends a DM to the user to verify their email" + "\n" + 309 | " .vstatus -> This help message" + "\n\n" + 310 | "Admin commands: " + "\n" + 311 | " - A domain must be added before users can be verified." + "\n" + 312 | " - Use .rolechange instead of server settings to change the name of the verified role." + "\n" + 313 | " .enableonjoin -> Enables verifying users on join" + "\n" + 314 | " .disableonjoin -> Disables verifying users on join" + "\n" + 315 | " .domainadd domain -> Adds an email domain" + "\n" + 316 | " .domainremove domain -> Removes an email domain" + "\n" + 317 | " .rolechange role -> Changes the name of the verified role" + "\n\n" + 318 | "Domains: " + check_on_join[1] + "\n" + 319 | "Verify when a user joins? (default=False): " + str(on_join) + "\n" + 320 | "Verified role (default=Verified): " + check_on_join[3] + "```") 321 | 322 | @client.command() 323 | async def vping(ctx): 324 | await ctx.send("{0}ms".format(round(client.latency * 1000))) 325 | 326 | @client.command() 327 | async def verify(ctx): 328 | if ctx.guild: 329 | check_on_join = get_guild(ctx.guild.id) 330 | if check_on_join == None: 331 | new_guild(ctx.guild.id) 332 | check_on_join = get_guild(ctx.guild.id) 333 | user_prev_verify = get_user_guild(ctx.guild.id, ctx.author.id) 334 | if user_prev_verify == None: 335 | new_user(ctx.author.id, ctx.guild.id) 336 | await ctx.author.send(verify_msg(ctx.guild, check_on_join[1])) 337 | elif user_prev_verify[4] == 0: 338 | await ctx.author.send(verify_msg(ctx.guild, check_on_join[1])) 339 | 340 | keep_alive() 341 | client.run(os.environ.get('DISCORD_TOKEN')) 342 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "aiohttp" 3 | version = "3.6.2" 4 | description = "Async http client/server framework (asyncio)" 5 | category = "main" 6 | optional = false 7 | python-versions = ">=3.5.3" 8 | 9 | [package.dependencies] 10 | async-timeout = ">=3.0,<4.0" 11 | attrs = ">=17.3.0" 12 | chardet = ">=2.0,<4.0" 13 | multidict = ">=4.5,<5.0" 14 | yarl = ">=1.0,<2.0" 15 | 16 | [package.extras] 17 | speedups = ["aiodns", "brotlipy", "cchardet"] 18 | 19 | [[package]] 20 | name = "apscheduler" 21 | version = "3.6.3" 22 | description = "In-process task scheduler with Cron-like capabilities" 23 | category = "main" 24 | optional = false 25 | python-versions = "*" 26 | 27 | [package.dependencies] 28 | pytz = "*" 29 | six = ">=1.4.0" 30 | tzlocal = ">=1.2" 31 | 32 | [package.extras] 33 | asyncio = ["trollius"] 34 | doc = ["sphinx", "sphinx-rtd-theme"] 35 | gevent = ["gevent"] 36 | mongodb = ["pymongo (>=2.8)"] 37 | redis = ["redis (>=3.0)"] 38 | rethinkdb = ["rethinkdb (>=2.4.0)"] 39 | sqlalchemy = ["sqlalchemy (>=0.8)"] 40 | testing = ["pytest", "pytest-cov", "pytest-tornado5", "mock", "pytest-asyncio (<0.6)", "pytest-asyncio"] 41 | tornado = ["tornado (>=4.3)"] 42 | twisted = ["twisted"] 43 | zookeeper = ["kazoo"] 44 | 45 | [[package]] 46 | name = "astroid" 47 | version = "2.4.2" 48 | description = "An abstract syntax tree for Python with inference support." 49 | category = "main" 50 | optional = false 51 | python-versions = ">=3.5" 52 | 53 | [package.dependencies] 54 | lazy-object-proxy = ">=1.4.0,<1.5.0" 55 | six = ">=1.12,<2.0" 56 | wrapt = ">=1.11,<2.0" 57 | 58 | [[package]] 59 | name = "async-timeout" 60 | version = "3.0.1" 61 | description = "Timeout context manager for asyncio programs" 62 | category = "main" 63 | optional = false 64 | python-versions = ">=3.5.3" 65 | 66 | [[package]] 67 | name = "attrs" 68 | version = "19.3.0" 69 | description = "Classes Without Boilerplate" 70 | category = "main" 71 | optional = false 72 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 73 | 74 | [package.extras] 75 | azure-pipelines = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "pytest-azurepipelines"] 76 | dev = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "pre-commit"] 77 | docs = ["sphinx", "zope.interface"] 78 | tests = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] 79 | 80 | [[package]] 81 | name = "certifi" 82 | version = "2020.12.5" 83 | description = "Python package for providing Mozilla's CA Bundle." 84 | category = "main" 85 | optional = false 86 | python-versions = "*" 87 | 88 | [[package]] 89 | name = "chardet" 90 | version = "3.0.4" 91 | description = "Universal encoding detector for Python 2 and 3" 92 | category = "main" 93 | optional = false 94 | python-versions = "*" 95 | 96 | [[package]] 97 | name = "click" 98 | version = "7.1.2" 99 | description = "Composable command line interface toolkit" 100 | category = "main" 101 | optional = false 102 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 103 | 104 | [[package]] 105 | name = "colorama" 106 | version = "0.4.4" 107 | description = "Cross-platform colored terminal text." 108 | category = "main" 109 | optional = false 110 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 111 | 112 | [[package]] 113 | name = "discord.py" 114 | version = "1.5.1" 115 | description = "A Python wrapper for the Discord API" 116 | category = "main" 117 | optional = false 118 | python-versions = ">=3.5.3" 119 | 120 | [package.dependencies] 121 | aiohttp = ">=3.6.0,<3.7.0" 122 | 123 | [package.extras] 124 | docs = ["sphinx (==1.8.5)", "sphinxcontrib-trio (==1.1.1)", "sphinxcontrib-websupport"] 125 | voice = ["PyNaCl (==1.3.0)"] 126 | 127 | [[package]] 128 | name = "flask" 129 | version = "1.1.2" 130 | description = "A simple framework for building complex web applications." 131 | category = "main" 132 | optional = false 133 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 134 | 135 | [package.dependencies] 136 | click = ">=5.1" 137 | itsdangerous = ">=0.24" 138 | Jinja2 = ">=2.10.1" 139 | Werkzeug = ">=0.15" 140 | 141 | [package.extras] 142 | dev = ["pytest", "coverage", "tox", "sphinx", "pallets-sphinx-themes", "sphinxcontrib-log-cabinet", "sphinx-issues"] 143 | docs = ["sphinx", "pallets-sphinx-themes", "sphinxcontrib-log-cabinet", "sphinx-issues"] 144 | dotenv = ["python-dotenv"] 145 | 146 | [[package]] 147 | name = "idna" 148 | version = "2.10" 149 | description = "Internationalized Domain Names in Applications (IDNA)" 150 | category = "main" 151 | optional = false 152 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 153 | 154 | [[package]] 155 | name = "isort" 156 | version = "4.3.21" 157 | description = "A Python utility / library to sort Python imports." 158 | category = "main" 159 | optional = false 160 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 161 | 162 | [package.extras] 163 | pipfile = ["pipreqs", "requirementslib"] 164 | pyproject = ["toml"] 165 | requirements = ["pipreqs", "pip-api"] 166 | xdg_home = ["appdirs (>=1.4.0)"] 167 | 168 | [[package]] 169 | name = "itsdangerous" 170 | version = "1.1.0" 171 | description = "Various helpers to pass data to untrusted environments and back." 172 | category = "main" 173 | optional = false 174 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 175 | 176 | [[package]] 177 | name = "jinja2" 178 | version = "2.11.2" 179 | description = "A very fast and expressive template engine." 180 | category = "main" 181 | optional = false 182 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 183 | 184 | [package.dependencies] 185 | MarkupSafe = ">=0.23" 186 | 187 | [package.extras] 188 | i18n = ["Babel (>=0.8)"] 189 | 190 | [[package]] 191 | name = "lazy-object-proxy" 192 | version = "1.4.3" 193 | description = "A fast and thorough lazy object proxy." 194 | category = "main" 195 | optional = false 196 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 197 | 198 | [[package]] 199 | name = "markupsafe" 200 | version = "1.1.1" 201 | description = "Safely add untrusted strings to HTML/XML markup." 202 | category = "main" 203 | optional = false 204 | python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" 205 | 206 | [[package]] 207 | name = "mccabe" 208 | version = "0.6.1" 209 | description = "McCabe checker, plugin for flake8" 210 | category = "main" 211 | optional = false 212 | python-versions = "*" 213 | 214 | [[package]] 215 | name = "multidict" 216 | version = "4.7.6" 217 | description = "multidict implementation" 218 | category = "main" 219 | optional = false 220 | python-versions = ">=3.5" 221 | 222 | [[package]] 223 | name = "pylint" 224 | version = "2.5.3" 225 | description = "python code static checker" 226 | category = "main" 227 | optional = false 228 | python-versions = ">=3.5.*" 229 | 230 | [package.dependencies] 231 | astroid = ">=2.4.0,<=2.5" 232 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 233 | isort = ">=4.2.5,<5" 234 | mccabe = ">=0.6,<0.7" 235 | toml = ">=0.7.1" 236 | 237 | [[package]] 238 | name = "python-http-client" 239 | version = "3.2.7" 240 | description = "HTTP REST client, simplified for Python" 241 | category = "main" 242 | optional = false 243 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 244 | 245 | [[package]] 246 | name = "pytz" 247 | version = "2020.1" 248 | description = "World timezone definitions, modern and historical" 249 | category = "main" 250 | optional = false 251 | python-versions = "*" 252 | 253 | [[package]] 254 | name = "requests" 255 | version = "2.25.1" 256 | description = "Python HTTP for Humans." 257 | category = "main" 258 | optional = false 259 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 260 | 261 | [package.dependencies] 262 | certifi = ">=2017.4.17" 263 | chardet = ">=3.0.2,<5" 264 | idna = ">=2.5,<3" 265 | urllib3 = ">=1.21.1,<1.27" 266 | 267 | [package.extras] 268 | security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"] 269 | socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] 270 | 271 | [[package]] 272 | name = "sendgrid" 273 | version = "6.4.5" 274 | description = "Twilio SendGrid library for Python" 275 | category = "main" 276 | optional = false 277 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 278 | 279 | [package.dependencies] 280 | python-http-client = ">=3.2.1" 281 | starkbank-ecdsa = ">=1.0.0" 282 | 283 | [[package]] 284 | name = "six" 285 | version = "1.15.0" 286 | description = "Python 2 and 3 compatibility utilities" 287 | category = "main" 288 | optional = false 289 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" 290 | 291 | [[package]] 292 | name = "starkbank-ecdsa" 293 | version = "1.0.0" 294 | description = "A lightweight and fast pure python ECDSA library" 295 | category = "main" 296 | optional = false 297 | python-versions = "*" 298 | 299 | [[package]] 300 | name = "toml" 301 | version = "0.10.1" 302 | description = "Python Library for Tom's Obvious, Minimal Language" 303 | category = "main" 304 | optional = false 305 | python-versions = "*" 306 | 307 | [[package]] 308 | name = "tzlocal" 309 | version = "2.1" 310 | description = "tzinfo object for the local timezone" 311 | category = "main" 312 | optional = false 313 | python-versions = "*" 314 | 315 | [package.dependencies] 316 | pytz = "*" 317 | 318 | [[package]] 319 | name = "urllib3" 320 | version = "1.26.2" 321 | description = "HTTP library with thread-safe connection pooling, file post, and more." 322 | category = "main" 323 | optional = false 324 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" 325 | 326 | [package.extras] 327 | brotli = ["brotlipy (>=0.6.0)"] 328 | secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"] 329 | socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] 330 | 331 | [[package]] 332 | name = "werkzeug" 333 | version = "1.0.1" 334 | description = "The comprehensive WSGI web application library." 335 | category = "main" 336 | optional = false 337 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 338 | 339 | [package.extras] 340 | dev = ["pytest", "pytest-timeout", "coverage", "tox", "sphinx", "pallets-sphinx-themes", "sphinx-issues"] 341 | watchdog = ["watchdog"] 342 | 343 | [[package]] 344 | name = "wrapt" 345 | version = "1.12.1" 346 | description = "Module for decorators, wrappers and monkey patching." 347 | category = "main" 348 | optional = false 349 | python-versions = "*" 350 | 351 | [[package]] 352 | name = "yarl" 353 | version = "1.5.1" 354 | description = "Yet another URL library" 355 | category = "main" 356 | optional = false 357 | python-versions = ">=3.5" 358 | 359 | [package.dependencies] 360 | idna = ">=2.0" 361 | multidict = ">=4.0" 362 | 363 | [metadata] 364 | lock-version = "1.1" 365 | python-versions = "^3.8" 366 | content-hash = "e8d19d827fa44a97a7606023a09a8a78ae5013b9941eead640b6b7897172c7fe" 367 | 368 | [metadata.files] 369 | aiohttp = [ 370 | {file = "aiohttp-3.6.2-cp35-cp35m-macosx_10_13_x86_64.whl", hash = "sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e"}, 371 | {file = "aiohttp-3.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec"}, 372 | {file = "aiohttp-3.6.2-cp36-cp36m-macosx_10_13_x86_64.whl", hash = "sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48"}, 373 | {file = "aiohttp-3.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59"}, 374 | {file = "aiohttp-3.6.2-cp36-cp36m-win32.whl", hash = "sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a"}, 375 | {file = "aiohttp-3.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17"}, 376 | {file = "aiohttp-3.6.2-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a"}, 377 | {file = "aiohttp-3.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd"}, 378 | {file = "aiohttp-3.6.2-cp37-cp37m-win32.whl", hash = "sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965"}, 379 | {file = "aiohttp-3.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654"}, 380 | {file = "aiohttp-3.6.2-py3-none-any.whl", hash = "sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4"}, 381 | {file = "aiohttp-3.6.2.tar.gz", hash = "sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326"}, 382 | ] 383 | apscheduler = [ 384 | {file = "APScheduler-3.6.3-py2.py3-none-any.whl", hash = "sha256:e8b1ecdb4c7cb2818913f766d5898183c7cb8936680710a4d3a966e02262e526"}, 385 | {file = "APScheduler-3.6.3.tar.gz", hash = "sha256:3bb5229eed6fbbdafc13ce962712ae66e175aa214c69bed35a06bffcf0c5e244"}, 386 | ] 387 | astroid = [ 388 | {file = "astroid-2.4.2-py3-none-any.whl", hash = "sha256:bc58d83eb610252fd8de6363e39d4f1d0619c894b0ed24603b881c02e64c7386"}, 389 | {file = "astroid-2.4.2.tar.gz", hash = "sha256:2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703"}, 390 | ] 391 | async-timeout = [ 392 | {file = "async-timeout-3.0.1.tar.gz", hash = "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f"}, 393 | {file = "async_timeout-3.0.1-py3-none-any.whl", hash = "sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3"}, 394 | ] 395 | attrs = [ 396 | {file = "attrs-19.3.0-py2.py3-none-any.whl", hash = "sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c"}, 397 | {file = "attrs-19.3.0.tar.gz", hash = "sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"}, 398 | ] 399 | certifi = [ 400 | {file = "certifi-2020.12.5-py2.py3-none-any.whl", hash = "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830"}, 401 | {file = "certifi-2020.12.5.tar.gz", hash = "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"}, 402 | ] 403 | chardet = [ 404 | {file = "chardet-3.0.4-py2.py3-none-any.whl", hash = "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"}, 405 | {file = "chardet-3.0.4.tar.gz", hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"}, 406 | ] 407 | click = [ 408 | {file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"}, 409 | {file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"}, 410 | ] 411 | colorama = [ 412 | {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, 413 | {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, 414 | ] 415 | "discord.py" = [ 416 | {file = "discord.py-1.5.1-py3-none-any.whl", hash = "sha256:2367359e31f6527f8a936751fc20b09d7495dd6a76b28c8fb13d4ca6c55b7563"}, 417 | {file = "discord.py-1.5.1.tar.gz", hash = "sha256:def00dc50cf36d21346d71bc89f0cad8f18f9a3522978dc18c7796287d47de8b"}, 418 | ] 419 | flask = [ 420 | {file = "Flask-1.1.2-py2.py3-none-any.whl", hash = "sha256:8a4fdd8936eba2512e9c85df320a37e694c93945b33ef33c89946a340a238557"}, 421 | {file = "Flask-1.1.2.tar.gz", hash = "sha256:4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060"}, 422 | ] 423 | idna = [ 424 | {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, 425 | {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, 426 | ] 427 | isort = [ 428 | {file = "isort-4.3.21-py2.py3-none-any.whl", hash = "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd"}, 429 | {file = "isort-4.3.21.tar.gz", hash = "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1"}, 430 | ] 431 | itsdangerous = [ 432 | {file = "itsdangerous-1.1.0-py2.py3-none-any.whl", hash = "sha256:b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749"}, 433 | {file = "itsdangerous-1.1.0.tar.gz", hash = "sha256:321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19"}, 434 | ] 435 | jinja2 = [ 436 | {file = "Jinja2-2.11.2-py2.py3-none-any.whl", hash = "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035"}, 437 | {file = "Jinja2-2.11.2.tar.gz", hash = "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0"}, 438 | ] 439 | lazy-object-proxy = [ 440 | {file = "lazy-object-proxy-1.4.3.tar.gz", hash = "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0"}, 441 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-macosx_10_13_x86_64.whl", hash = "sha256:a2238e9d1bb71a56cd710611a1614d1194dc10a175c1e08d75e1a7bcc250d442"}, 442 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-win32.whl", hash = "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4"}, 443 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-win_amd64.whl", hash = "sha256:4677f594e474c91da97f489fea5b7daa17b5517190899cf213697e48d3902f5a"}, 444 | {file = "lazy_object_proxy-1.4.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:0c4b206227a8097f05c4dbdd323c50edf81f15db3b8dc064d08c62d37e1a504d"}, 445 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:d945239a5639b3ff35b70a88c5f2f491913eb94871780ebfabb2568bd58afc5a"}, 446 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-win32.whl", hash = "sha256:9651375199045a358eb6741df3e02a651e0330be090b3bc79f6d0de31a80ec3e"}, 447 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-win_amd64.whl", hash = "sha256:eba7011090323c1dadf18b3b689845fd96a61ba0a1dfbd7f24b921398affc357"}, 448 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:48dab84ebd4831077b150572aec802f303117c8cc5c871e182447281ebf3ac50"}, 449 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-win32.whl", hash = "sha256:ca0a928a3ddbc5725be2dd1cf895ec0a254798915fb3a36af0964a0a4149e3db"}, 450 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-win_amd64.whl", hash = "sha256:194d092e6f246b906e8f70884e620e459fc54db3259e60cf69a4d66c3fda3449"}, 451 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:97bb5884f6f1cdce0099f86b907aa41c970c3c672ac8b9c8352789e103cf3156"}, 452 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-win32.whl", hash = "sha256:cb2c7c57005a6804ab66f106ceb8482da55f5314b7fcb06551db1edae4ad1531"}, 453 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-win_amd64.whl", hash = "sha256:8d859b89baf8ef7f8bc6b00aa20316483d67f0b1cbf422f5b4dc56701c8f2ffb"}, 454 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:1be7e4c9f96948003609aa6c974ae59830a6baecc5376c25c92d7d697e684c08"}, 455 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:d74bb8693bf9cf75ac3b47a54d716bbb1a92648d5f781fc799347cfc95952383"}, 456 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-win32.whl", hash = "sha256:9b15f3f4c0f35727d3a0fba4b770b3c4ebbb1fa907dbcc046a1d2799f3edd142"}, 457 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9254f4358b9b541e3441b007a0ea0764b9d056afdeafc1a5569eee1cc6c1b9ea"}, 458 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:a6ae12d08c0bf9909ce12385803a543bfe99b95fe01e752536a60af2b7797c62"}, 459 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-win32.whl", hash = "sha256:5541cada25cd173702dbd99f8e22434105456314462326f06dba3e180f203dfd"}, 460 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:59f79fef100b09564bc2df42ea2d8d21a64fdcda64979c0fa3db7bdaabaf6239"}, 461 | ] 462 | markupsafe = [ 463 | {file = "MarkupSafe-1.1.1-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161"}, 464 | {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"}, 465 | {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183"}, 466 | {file = "MarkupSafe-1.1.1-cp27-cp27m-win32.whl", hash = "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b"}, 467 | {file = "MarkupSafe-1.1.1-cp27-cp27m-win_amd64.whl", hash = "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e"}, 468 | {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f"}, 469 | {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1"}, 470 | {file = "MarkupSafe-1.1.1-cp34-cp34m-macosx_10_6_intel.whl", hash = "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5"}, 471 | {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_i686.whl", hash = "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1"}, 472 | {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735"}, 473 | {file = "MarkupSafe-1.1.1-cp34-cp34m-win32.whl", hash = "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21"}, 474 | {file = "MarkupSafe-1.1.1-cp34-cp34m-win_amd64.whl", hash = "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235"}, 475 | {file = "MarkupSafe-1.1.1-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b"}, 476 | {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f"}, 477 | {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905"}, 478 | {file = "MarkupSafe-1.1.1-cp35-cp35m-win32.whl", hash = "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1"}, 479 | {file = "MarkupSafe-1.1.1-cp35-cp35m-win_amd64.whl", hash = "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d"}, 480 | {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff"}, 481 | {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473"}, 482 | {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e"}, 483 | {file = "MarkupSafe-1.1.1-cp36-cp36m-win32.whl", hash = "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66"}, 484 | {file = "MarkupSafe-1.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5"}, 485 | {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d"}, 486 | {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e"}, 487 | {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"}, 488 | {file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"}, 489 | {file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"}, 490 | {file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"}, 491 | {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"}, 492 | {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"}, 493 | {file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"}, 494 | {file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"}, 495 | {file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"}, 496 | ] 497 | mccabe = [ 498 | {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, 499 | {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, 500 | ] 501 | multidict = [ 502 | {file = "multidict-4.7.6-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:275ca32383bc5d1894b6975bb4ca6a7ff16ab76fa622967625baeebcf8079000"}, 503 | {file = "multidict-4.7.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:1ece5a3369835c20ed57adadc663400b5525904e53bae59ec854a5d36b39b21a"}, 504 | {file = "multidict-4.7.6-cp35-cp35m-win32.whl", hash = "sha256:5141c13374e6b25fe6bf092052ab55c0c03d21bd66c94a0e3ae371d3e4d865a5"}, 505 | {file = "multidict-4.7.6-cp35-cp35m-win_amd64.whl", hash = "sha256:9456e90649005ad40558f4cf51dbb842e32807df75146c6d940b6f5abb4a78f3"}, 506 | {file = "multidict-4.7.6-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:e0d072ae0f2a179c375f67e3da300b47e1a83293c554450b29c900e50afaae87"}, 507 | {file = "multidict-4.7.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:3750f2205b800aac4bb03b5ae48025a64e474d2c6cc79547988ba1d4122a09e2"}, 508 | {file = "multidict-4.7.6-cp36-cp36m-win32.whl", hash = "sha256:f07acae137b71af3bb548bd8da720956a3bc9f9a0b87733e0899226a2317aeb7"}, 509 | {file = "multidict-4.7.6-cp36-cp36m-win_amd64.whl", hash = "sha256:6513728873f4326999429a8b00fc7ceddb2509b01d5fd3f3be7881a257b8d463"}, 510 | {file = "multidict-4.7.6-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:feed85993dbdb1dbc29102f50bca65bdc68f2c0c8d352468c25b54874f23c39d"}, 511 | {file = "multidict-4.7.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fcfbb44c59af3f8ea984de67ec7c306f618a3ec771c2843804069917a8f2e255"}, 512 | {file = "multidict-4.7.6-cp37-cp37m-win32.whl", hash = "sha256:4538273208e7294b2659b1602490f4ed3ab1c8cf9dbdd817e0e9db8e64be2507"}, 513 | {file = "multidict-4.7.6-cp37-cp37m-win_amd64.whl", hash = "sha256:d14842362ed4cf63751648e7672f7174c9818459d169231d03c56e84daf90b7c"}, 514 | {file = "multidict-4.7.6-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:c026fe9a05130e44157b98fea3ab12969e5b60691a276150db9eda71710cd10b"}, 515 | {file = "multidict-4.7.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:51a4d210404ac61d32dada00a50ea7ba412e6ea945bbe992e4d7a595276d2ec7"}, 516 | {file = "multidict-4.7.6-cp38-cp38-win32.whl", hash = "sha256:5cf311a0f5ef80fe73e4f4c0f0998ec08f954a6ec72b746f3c179e37de1d210d"}, 517 | {file = "multidict-4.7.6-cp38-cp38-win_amd64.whl", hash = "sha256:7388d2ef3c55a8ba80da62ecfafa06a1c097c18032a501ffd4cabbc52d7f2b19"}, 518 | {file = "multidict-4.7.6.tar.gz", hash = "sha256:fbb77a75e529021e7c4a8d4e823d88ef4d23674a202be4f5addffc72cbb91430"}, 519 | ] 520 | pylint = [ 521 | {file = "pylint-2.5.3-py3-none-any.whl", hash = "sha256:d0ece7d223fe422088b0e8f13fa0a1e8eb745ebffcb8ed53d3e95394b6101a1c"}, 522 | {file = "pylint-2.5.3.tar.gz", hash = "sha256:7dd78437f2d8d019717dbf287772d0b2dbdfd13fc016aa7faa08d67bccc46adc"}, 523 | ] 524 | python-http-client = [ 525 | {file = "python_http_client-3.2.7.tar.gz", hash = "sha256:93d6a26b426e48b04e589c1f103e7c040193e4ccc379ea50cd6e12f94cca7c69"}, 526 | ] 527 | pytz = [ 528 | {file = "pytz-2020.1-py2.py3-none-any.whl", hash = "sha256:a494d53b6d39c3c6e44c3bec237336e14305e4f29bbf800b599253057fbb79ed"}, 529 | {file = "pytz-2020.1.tar.gz", hash = "sha256:c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"}, 530 | ] 531 | requests = [ 532 | {file = "requests-2.25.1-py2.py3-none-any.whl", hash = "sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e"}, 533 | {file = "requests-2.25.1.tar.gz", hash = "sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"}, 534 | ] 535 | sendgrid = [ 536 | {file = "sendgrid-6.4.5-py3-none-any.whl", hash = "sha256:0bb53924d3f46e895c19150f4ee8451cebb59eee0aaa1f8f7232f37eac79ca7a"}, 537 | {file = "sendgrid-6.4.5.tar.gz", hash = "sha256:50e0061954ead24167a300f104a6c5ea11f1e132e4fdba440f634ed79a1cbef9"}, 538 | ] 539 | six = [ 540 | {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, 541 | {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, 542 | ] 543 | starkbank-ecdsa = [ 544 | {file = "starkbank-ecdsa-1.0.0.tar.gz", hash = "sha256:cd17ec9fa7ad8ae3fc81a63ddb7e0d7fb798a048e40c1a9c55afd1a207d1eff9"}, 545 | ] 546 | toml = [ 547 | {file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"}, 548 | {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, 549 | ] 550 | tzlocal = [ 551 | {file = "tzlocal-2.1-py2.py3-none-any.whl", hash = "sha256:e2cb6c6b5b604af38597403e9852872d7f534962ae2954c7f35efcb1ccacf4a4"}, 552 | {file = "tzlocal-2.1.tar.gz", hash = "sha256:643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44"}, 553 | ] 554 | urllib3 = [ 555 | {file = "urllib3-1.26.2-py2.py3-none-any.whl", hash = "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473"}, 556 | {file = "urllib3-1.26.2.tar.gz", hash = "sha256:19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08"}, 557 | ] 558 | werkzeug = [ 559 | {file = "Werkzeug-1.0.1-py2.py3-none-any.whl", hash = "sha256:2de2a5db0baeae7b2d2664949077c2ac63fbd16d98da0ff71837f7d1dea3fd43"}, 560 | {file = "Werkzeug-1.0.1.tar.gz", hash = "sha256:6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"}, 561 | ] 562 | wrapt = [ 563 | {file = "wrapt-1.12.1.tar.gz", hash = "sha256:b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"}, 564 | ] 565 | yarl = [ 566 | {file = "yarl-1.5.1-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:db6db0f45d2c63ddb1a9d18d1b9b22f308e52c83638c26b422d520a815c4b3fb"}, 567 | {file = "yarl-1.5.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:17668ec6722b1b7a3a05cc0167659f6c95b436d25a36c2d52db0eca7d3f72593"}, 568 | {file = "yarl-1.5.1-cp35-cp35m-win32.whl", hash = "sha256:040b237f58ff7d800e6e0fd89c8439b841f777dd99b4a9cca04d6935564b9409"}, 569 | {file = "yarl-1.5.1-cp35-cp35m-win_amd64.whl", hash = "sha256:f18d68f2be6bf0e89f1521af2b1bb46e66ab0018faafa81d70f358153170a317"}, 570 | {file = "yarl-1.5.1-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:c52ce2883dc193824989a9b97a76ca86ecd1fa7955b14f87bf367a61b6232511"}, 571 | {file = "yarl-1.5.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:ce584af5de8830d8701b8979b18fcf450cef9a382b1a3c8ef189bedc408faf1e"}, 572 | {file = "yarl-1.5.1-cp36-cp36m-win32.whl", hash = "sha256:df89642981b94e7db5596818499c4b2219028f2a528c9c37cc1de45bf2fd3a3f"}, 573 | {file = "yarl-1.5.1-cp36-cp36m-win_amd64.whl", hash = "sha256:3a584b28086bc93c888a6c2aa5c92ed1ae20932f078c46509a66dce9ea5533f2"}, 574 | {file = "yarl-1.5.1-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:da456eeec17fa8aa4594d9a9f27c0b1060b6a75f2419fe0c00609587b2695f4a"}, 575 | {file = "yarl-1.5.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bc2f976c0e918659f723401c4f834deb8a8e7798a71be4382e024bcc3f7e23a8"}, 576 | {file = "yarl-1.5.1-cp37-cp37m-win32.whl", hash = "sha256:4439be27e4eee76c7632c2427ca5e73703151b22cae23e64adb243a9c2f565d8"}, 577 | {file = "yarl-1.5.1-cp37-cp37m-win_amd64.whl", hash = "sha256:48e918b05850fffb070a496d2b5f97fc31d15d94ca33d3d08a4f86e26d4e7c5d"}, 578 | {file = "yarl-1.5.1-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:9b930776c0ae0c691776f4d2891ebc5362af86f152dd0da463a6614074cb1b02"}, 579 | {file = "yarl-1.5.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:b3b9ad80f8b68519cc3372a6ca85ae02cc5a8807723ac366b53c0f089db19e4a"}, 580 | {file = "yarl-1.5.1-cp38-cp38-win32.whl", hash = "sha256:f379b7f83f23fe12823085cd6b906edc49df969eb99757f58ff382349a3303c6"}, 581 | {file = "yarl-1.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:9102b59e8337f9874638fcfc9ac3734a0cfadb100e47d55c20d0dc6087fb4692"}, 582 | {file = "yarl-1.5.1.tar.gz", hash = "sha256:c22c75b5f394f3d47105045ea551e08a3e804dc7e01b37800ca35b58f856c3d6"}, 583 | ] 584 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . --------------------------------------------------------------------------------