I hereby claim:
- I am ejh2 on github.
- I am ejh2 (https://keybase.io/ejh2) on keybase.
- I have a public key ASBzEI9oTwgD46TYPtTPwTVhgp-Kx0Xb9yTNbMUMB2V1qQo
To claim this, I am signing this object:
| { | |
| "grinning": "\ud83d\ude00", | |
| "smiley": "\ud83d\ude03", | |
| "smile": "\ud83d\ude04", | |
| "grin": "\ud83d\ude01", | |
| "laughing": "\ud83d\ude06", | |
| "satisfied": "\ud83d\ude06", | |
| "sweat_smile": "\ud83d\ude05", | |
| "joy": "\ud83d\ude02", | |
| "rofl": "\ud83e\udd23", |
| <!-- | |
| display_progress.html | |
| The channels library doesn't provide an easy way to reference URLs in templates, so hardcoding the URL is necessary | |
| !--> | |
| <script src="{% static 'celery_progress/celery_progress.js' %}"></script> | |
| <script src="{% static 'celery_progress/celery_progress_websockets.js' %}"></script> | |
| ... | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function () { |
| # coding=utf-8 | |
| """ | |
| URL shortening with Polr for the bot | |
| Uses modified code from | |
| <https://github.com/fauskanger/mypolr/blob/fc11df734e35a1c1d5382341c09c043433c8a851/mypolr/polr_api.py>, | |
| © 2017 Thomas Fauskanger | |
| modified by https://github.com/EJH2 | |
| © 2019 EJH2 | |
| """ |
| # coding=utf-8 | |
| """ | |
| PrivateBin uploading | |
| privatebin.py: uploads text to privatebin | |
| using code from <https://github.com/r4sas/PBinCLI/blob/master/pbincli/actions.py>, | |
| © 2017–2018 R4SAS <[email protected]> | |
| using code from <https://github.com/khazhyk/dango.py/blob/master/dango/zerobin.py>, | |
| © 2017 khazhyk | |
| modified by https://github.com/bmintz |
| # coding=utf-8 | |
| """ | |
| SJCL utilities for the bots various functions | |
| using code from <https://github.com/r4sas/PBinCLI/blob/master/pbincli/actions.py>, | |
| © 2017–2018 R4SAS <[email protected]> | |
| using code from <https://github.com/khazhyk/dango.py/blob/master/dango/zerobin.py>, | |
| © 2017 khazhyk | |
| modified by https://github.com/bmintz | |
| © 2018 bmintz |
| # coding=utf-8 | |
| """PB pasting""" | |
| import aiohttp | |
| import asyncio | |
| import datetime | |
| from ruamel import yaml | |
| DEFAULT_HOST = 'http://ptpb.pw' |
| from argparse import Namespace, ArgumentParser as AP | |
| import contextlib | |
| import io | |
| from discord.ext.commands import Converter | |
| class ArgumentException(BaseException): | |
| pass |
I hereby claim:
To claim this, I am signing this object:
| async def cmd_usage(client, message, cmds): | |
| try: | |
| if message.content.lower().startswith(ClippySettings.commandprefix + 'usage help'): | |
| await client.send_message(message.channel, "Info for the command `" + ClippySettings.commandprefix + "help`:\nDescription: Shows the help menu.\nUsage: `" + ClippySettings.commandprefix + "help`.") | |
| elif message.content.lower().startswith(ClippySettings.commandprefix + 'usage info'): | |
| await client.send_message(message.channel, "Info for the command `" + ClippySettings.commandprefix + "info`:\nDescription: Shows details about the bot.\nUsage: `" + ClippySettings.commandprefix + "info`.") | |
| elif message.content.lower().startswith(ClippySettings.commandprefix + 'usage calc'): | |
| await client.send_message(message.channel, "Info for the command `" + ClippySettings.commandprefix + "calc`:\nDescription: Solves basic math equations.\nUsage: `" + ClippySettings.commandprefix + "calc <equation>`.") | |
| elif message.content.lower |