This file contains 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
import datetime, time | |
import hangups | |
import plugins | |
def _initialise(bot): | |
plugins.register_admin_command(["watermark", "typing"]) | |
def watermark(bot, event, *args): |
This file contains 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
import logging, os, sys, resource | |
import psutil # pip3 install psutil | |
import plugins | |
logger = logging.getLogger(__name__) | |
This file contains 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
# test_a.py | |
# in the bot, this represents the new hangups library | |
this_is_a_constant = 'ABCD' | |
def print_constant(): | |
print(repr(this_is_a_constant)) | |
This file contains 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
import asyncio | |
import logging | |
import time | |
import os | |
logger = logging.getLogger(__name__) | |
import plugins |
This file contains 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
#!/usr/bin/python | |
import logging | |
logging.basicConfig(filename='rsws.log',level=logging.DEBUG) | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
class S(BaseHTTPRequestHandler): | |
def _set_headers(self): |
OlderNewer