This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Jan 14, 2017 | |
@author: andrew | |
''' | |
import asyncio | |
import pickle | |
import sys | |
import traceback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Jan 14, 2017 | |
@author: andrew | |
''' | |
import asyncio | |
import datetime | |
from os.path import isfile | |
import pickle | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.ext import commands | |
import discord.utils | |
# | |
# This is a modified version of checks.py, originally made by Rapptz | |
# | |
# https://github.com/Rapptz | |
# https://github.com/Rapptz/RoboDanny/tree/async | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@commands.command(hidden=True, pass_context=True) | |
@checks.is_owner() | |
async def assume_direct_control(self, ctx, chan:str): | |
"""Assumes direct control of Avrae.""" | |
def cleanup_code(content): | |
"""Automatically removes code blocks from the code.""" | |
# remove ```py\n``` | |
if content.startswith('```') and content.endswith('```'): | |
return '\n'.join(content.split('\n')[1:-1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Sep 18, 2016 | |
@author: andrew | |
''' | |
import asyncio | |
from math import floor | |
from os.path import isfile | |
import pickle | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Mar 27, 2017 | |
@author: andrew | |
''' | |
import copy | |
import os | |
import signal | |
import subprocess | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Dec 25, 2016 | |
@author: andrew | |
''' | |
from heapq import nlargest, nsmallest | |
from math import floor | |
import random | |
from re import IGNORECASE | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Jan 17, 2017 | |
@author: andrew | |
''' | |
import asyncio | |
import inspect | |
import itertools | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Dec 25, 2016 | |
@author: andrew | |
''' | |
from heapq import nlargest, nsmallest | |
import random | |
from re import IGNORECASE | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Oct 29, 2016 | |
@author: andrew | |
''' | |
import errno | |
import os | |
import re | |
from fuzzywuzzy import process, fuzz |
OlderNewer