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 | |
import socket | |
class IRC: | |
irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
def __init__(self, server, port, nick, channel, auth): | |
self.server = server | |
self.port = port | |
self.nick = nick |
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 os | |
import sqlite3 | |
from No3rdPartLibTwitchBot import IRC | |
from configno3rdparty import * | |
from SQLiteCommands import * | |
import shlex | |
import re | |
AUTH = oauthconfig |
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 sqlite3 | |
from NewCommandLib import * | |
from ChatBotCommands import * | |
from No3rdPartLibCode import * | |
conn = sqlite3.connect('newcommand.db') | |
c = conn.cursor() | |
c.execute("""CREATE TABLE IF NOT EXISTS newcommand( |
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
from config import * | |
import asyncio | |
from asynctwitch import * | |
class TwitchBot(CommandBot): | |
async def _join(self, channel): | |
await super()._join(channel), | |
await say('Im here now, ok? Streamer, are you ok with that?') | |
await bot._send_privmsg('nex_infinite', '/color SpringGreen') |