FireBot/bare.py

72 lines
1.3 KiB
Python
Raw Normal View History

#!/usr/bin/python3
from socket import socket
from overrides import bytes, bbytes
logs = ...
re = ...
from typing import NoReturn, Union
cmds = ...
conf = ...
sleep = ...
reload = ...
r = ...
handlers = ...
def mfind(message: str, find: list, usePrefix: bool = True) -> bool:
...
class bot:
gmode: bool
server: str
nicklen: int
address: str
port: int
channels: dict[str, int]
interval: int
__version__: str
nick: str
adminnames: list[str]
queue: list[bbytes]
sock: socket
npallowed: list[str]
def __init__(self, server: str):
...
def connect(self) -> None:
...
def join(self, chan: str, origin: str, lock: bool = True) -> None:
...
def ping(self, ircmsg: str) -> int:
...
def send(self, command: str) -> int:
...
def recv(self) -> bytes:
...
def log(self, message: str, level: str = "LOG") -> None:
...
def exit(self, message: str) -> NoReturn:
...
def msg(self, msg: str, target: str) -> None:
...
def op(self, name: str, chan: str) -> Union[int, None]:
...
def notice(self, msg: str, target: str, silent: bool = False) -> int:
...
def sendraw(self, command: str) -> int:
...
def mainloop(self) -> NoReturn:
...