rename to min because someone registered it on libera smh
This commit is contained in:
parent
1019e37470
commit
5580b3fa86
8 changed files with 17 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
|||
# Kim
|
||||
# min
|
||||
A bot that uses weighted topic identifiers, and markov to make intresting and amusing conversations.
|
||||
|
||||
Based on the the idea of [RealAI](https://github.com/oblivionburn/RealAI), however it does not use any
|
||||
|
|
6
bot.py
6
bot.py
|
@ -120,13 +120,13 @@ async def main():
|
|||
|
||||
sasl_params = SASLUserPass(username, password)
|
||||
params = ConnectionParams(
|
||||
"kim",
|
||||
host = "irc.tilde.chat",
|
||||
"min",
|
||||
host = "irc.libera.chat",
|
||||
port = 6697,
|
||||
tls = True,
|
||||
sasl = sasl_params)
|
||||
|
||||
await bot.add_server("tilde", params)
|
||||
await bot.add_server("libera", params)
|
||||
await bot.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
10
kim.service
10
kim.service
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=kim
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'cd /home/xfnw/kim-irc/; PYTHONUNBUFFERED=1 ./bot.py'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
|
10
min.service
Normal file
10
min.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=min
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'cd /home/xfnw/min-irc/; PYTHONUNBUFFERED=1 ./bot.py'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
|
|
@ -176,7 +176,7 @@ async def adminHandle(self, chan, source, msg):
|
|||
async def init(self):
|
||||
self.chandb = shared.db['chan']
|
||||
|
||||
self.admins = ['lickthecheese']
|
||||
self.admins = ['xfnw']
|
||||
return
|
||||
self.cmd['admin'] = adminHandle
|
||||
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
from bot import *
|
||||
|
||||
@rawm('botlist')
|
||||
async def botlist(self,channel,nick,msg):
|
||||
if msg == '!botlist':
|
||||
await message(self,'botlist',channel,'Hi, im kim. im a machine learning chatbot')
|
||||
|
||||
|
||||
|
||||
async def init(self):
|
||||
pass
|
|
@ -81,7 +81,7 @@ async def filter(self, c, n, m):
|
|||
if m[:len(shared.prefix)] == shared.prefix:
|
||||
m = m[len(shared.prefix):]
|
||||
await go(self, c, n, m)
|
||||
elif m[:4] == 'kim ':
|
||||
elif m[:4] == 'min ':
|
||||
m = m[4:]
|
||||
await go(self, c, n, m)
|
||||
else:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
import dataset
|
||||
|
||||
prefix = 'kim: '
|
||||
prefix = 'min: '
|
||||
modules = {}
|
||||
listeners = []
|
||||
commands = {}
|
||||
|
|
Loading…
Reference in a new issue