mirror of https://xfnw.ttm.sh/git/oirc.git
ham keep and owo modules ported
This commit is contained in:
parent
ecbac51282
commit
60bc32827a
|
@ -1,7 +1,7 @@
|
|||
|
||||
from bot import *
|
||||
import json, requests
|
||||
|
||||
|
||||
@command('lookup')
|
||||
async def lookup(self,c,n,m):
|
||||
if len(m) < 1:
|
||||
await self.message(c, '[\x036ham\x0f] you need the callsign lol')
|
||||
|
@ -18,7 +18,7 @@ async def lookup(self,c,n,m):
|
|||
|
||||
|
||||
async def init(self):
|
||||
self.cmd['lookup'] = lookup
|
||||
self.help['lookup'] = ['lookup <callsign> - lookup a ham callsign','ROBERT']
|
||||
pass
|
||||
#self.help['lookup'] = ['lookup <callsign> - lookup a ham callsign','ROBERT']
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
from bot import *
|
||||
import random
|
||||
|
||||
async def getkeep(self,c,n,m):
|
||||
|
@ -72,18 +72,18 @@ async def rmkeep(self,c,n,m):
|
|||
await self.message(c,'[\x036keep\x0f] you must have +o in #balun')
|
||||
|
||||
async def init(self):
|
||||
self.keepdb = self.db['keep']
|
||||
self.keepdb = shared.db['keep']
|
||||
|
||||
self.cmd['keep'] = getkeep
|
||||
self.help['keep'] = ['keep - get keeps about keep','lets learn about keep!']
|
||||
shared.commands['keep'] = getkeep
|
||||
#self.help['keep'] = ['keep - get keeps about keep','lets learn about keep!']
|
||||
|
||||
self.cmd['addkeep'] = addkeep
|
||||
self.help['addkeep'] = ['addkeep <keep> - add a new keep (more)','if you find something offensive contact lickthecheese, he can remove it and/or tell you who added it so watch out!']
|
||||
shared.commands['addkeep'] = addkeep
|
||||
#self.help['addkeep'] = ['addkeep <keep> - add a new keep (more)','if you find something offensive contact lickthecheese, he can remove it and/or tell you who added it so watch out!']
|
||||
|
||||
self.cmd['grabkeep'] = grabkeep
|
||||
self.help['grabkeep'] = ['grabkeep [back] - grab something to keep','tooootally did not steal this from bitbot']
|
||||
shared.commands['grabkeep'] = grabkeep
|
||||
#self.help['grabkeep'] = ['grabkeep [back] - grab something to keep','tooootally did not steal this from bitbot']
|
||||
|
||||
self.rmkeepchan = "#balun"
|
||||
self.cmd['rmkeep'] = rmkeep
|
||||
self.help['rmkeep'] = ['rmkeep <criteria> <pattern> - remove some keep(s). criteria types in (more)','types of criteria: n|nick q|quote eg "rmkeep nick spammer" to get rid of all keeps created by nick spammer']
|
||||
shared.commands['rmkeep'] = rmkeep
|
||||
#self.help['rmkeep'] = ['rmkeep <criteria> <pattern> - remove some keep(s). criteria types in (more)','types of criteria: n|nick q|quote eg "rmkeep nick spammer" to get rid of all keeps created by nick spammer']
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
from bot import *
|
||||
import random
|
||||
|
||||
async def owologger(self,c,n,m):
|
||||
print("<{} {}> {}".format(c,n,m))
|
||||
if m[:len(self.prefix)] == self.prefix:
|
||||
if m[:len(shared.prefix)] == shared.prefix:
|
||||
return
|
||||
if c not in self.owolog:
|
||||
self.owolog[c] = []
|
||||
|
@ -32,7 +32,7 @@ async def owotext(self, back, chan):
|
|||
|
||||
async def init(self):
|
||||
self.owolog = {}
|
||||
self.rawm['owolog'] = owologger
|
||||
self.cmd['owo'] = owoify
|
||||
self.help['owo'] = ['owo [num] - owoify the text', 'owo owo uwu']
|
||||
shared.rawm['owolog'] = owologger
|
||||
shared.commands['owo'] = owoify
|
||||
#self.help['owo'] = ['owo [num] - owoify the text', 'owo owo uwu']
|
||||
|
Loading…
Reference in New Issue