Update server.py
This commit is contained in:
parent
2e8d1302d8
commit
4c3f26307a
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
__version__ = "0.0.1-pre-alpha"
|
__version__ = "0.0.1-pre-alpha"
|
||||||
print(f"INTERNET RELAY CAT v{__version__}")
|
print(f"INTERNET RELAY CAT v{__version__}")
|
||||||
print("Welcome! /ᐠ ˵> ⩊ <˵マ")
|
print("Welcome! /ᐠ ˵> ⩊ <˵マ")
|
||||||
import socket, time, threading, traceback, sys, subprocess, yaml, sqlite3, os
|
import socket, time, threading, traceback, sys, subprocess, yaml, sqlite3, os, bcrypt
|
||||||
from requests import get
|
from requests import get
|
||||||
if not len(sys.argv) == 2:
|
if not len(sys.argv) == 2:
|
||||||
print("IRCat requires the following arguments: config.yml")
|
print("IRCat requires the following arguments: config.yml")
|
||||||
|
@ -43,6 +43,8 @@ class IRCat_DATA_BROKER:
|
||||||
if self.db.fetchall()[0]!=1:
|
if self.db.fetchall()[0]!=1:
|
||||||
print("Creating ChanServ table...")
|
print("Creating ChanServ table...")
|
||||||
self.db.execute("""CREATE table chanserv (name varchar(255), modes varchar(255), params varchar(255), owner varchar(255), usermodes varchar(255), optimodes varchar(255))""")
|
self.db.execute("""CREATE table chanserv (name varchar(255), modes varchar(255), params varchar(255), owner varchar(255), usermodes varchar(255), optimodes varchar(255))""")
|
||||||
|
def nickserv_identify(self, nick, password):
|
||||||
|
|
||||||
config = IRCat_DATA_BROKER()
|
config = IRCat_DATA_BROKER()
|
||||||
ip = get('https://api.ipify.org').content.decode('utf8')
|
ip = get('https://api.ipify.org').content.decode('utf8')
|
||||||
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
|
Loading…
Reference in a new issue