mirror of https://xfnw.ttm.sh/git/oirc.git
ham keep and owo modules ported
This commit is contained in:
parent
ecbac51282
commit
c2fbf4f728
|
@ -1,7 +1,7 @@
|
||||||
|
from bot import *
|
||||||
import json, requests
|
import json, requests
|
||||||
|
|
||||||
|
@command('lookup')
|
||||||
async def lookup(self,c,n,m):
|
async def lookup(self,c,n,m):
|
||||||
if len(m) < 1:
|
if len(m) < 1:
|
||||||
await self.message(c, '[\x036ham\x0f] you need the callsign lol')
|
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):
|
async def init(self):
|
||||||
self.cmd['lookup'] = lookup
|
pass
|
||||||
self.help['lookup'] = ['lookup <callsign> - lookup a ham callsign','ROBERT']
|
#self.help['lookup'] = ['lookup <callsign> - lookup a ham callsign','ROBERT']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
from bot import *
|
||||||
import random
|
import random
|
||||||
|
|
||||||
async def getkeep(self,c,n,m):
|
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')
|
await self.message(c,'[\x036keep\x0f] you must have +o in #balun')
|
||||||
|
|
||||||
async def init(self):
|
async def init(self):
|
||||||
self.keepdb = self.db['keep']
|
self.keepdb = shared.db['keep']
|
||||||
|
|
||||||
self.cmd['keep'] = getkeep
|
shared.commands['keep'] = getkeep
|
||||||
self.help['keep'] = ['keep - get keeps about keep','lets learn about keep!']
|
#self.help['keep'] = ['keep - get keeps about keep','lets learn about keep!']
|
||||||
|
|
||||||
self.cmd['addkeep'] = addkeep
|
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.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
|
shared.commands['grabkeep'] = grabkeep
|
||||||
self.help['grabkeep'] = ['grabkeep [back] - grab something to keep','tooootally did not steal this from bitbot']
|
#self.help['grabkeep'] = ['grabkeep [back] - grab something to keep','tooootally did not steal this from bitbot']
|
||||||
|
|
||||||
self.rmkeepchan = "#balun"
|
self.rmkeepchan = "#balun"
|
||||||
self.cmd['rmkeep'] = rmkeep
|
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']
|
#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,4 +1,4 @@
|
||||||
|
from bot import *
|
||||||
import random
|
import random
|
||||||
|
|
||||||
async def owologger(self,c,n,m):
|
async def owologger(self,c,n,m):
|
||||||
|
@ -32,7 +32,7 @@ async def owotext(self, back, chan):
|
||||||
|
|
||||||
async def init(self):
|
async def init(self):
|
||||||
self.owolog = {}
|
self.owolog = {}
|
||||||
self.rawm['owolog'] = owologger
|
shared.rawm['owolog'] = owologger
|
||||||
self.cmd['owo'] = owoify
|
shared.commands['owo'] = owoify
|
||||||
self.help['owo'] = ['owo [num] - owoify the text', 'owo owo uwu']
|
#self.help['owo'] = ['owo [num] - owoify the text', 'owo owo uwu']
|
||||||
|
|
Loading…
Reference in New Issue