Added restore for tells
This commit is contained in:
parent
4414a3ade7
commit
459651de2f
|
@ -29,6 +29,13 @@ class Futures(DatabasePlugin):
|
||||||
args = (IrcString(res['mask']), res['channel'], delta,
|
args = (IrcString(res['mask']), res['channel'], delta,
|
||||||
res['message'], res['delay'], res['id'])
|
res['message'], res['delay'], res['id'])
|
||||||
asyncio.ensure_future(self._timer(*args))
|
asyncio.ensure_future(self._timer(*args))
|
||||||
|
# Restore tells from database
|
||||||
|
self.cur.execute('select * from tells')
|
||||||
|
for res in self.cur.fetchall():
|
||||||
|
user = res['user']
|
||||||
|
if user not in self.tell_queue:
|
||||||
|
self.tell_queue[user] = []
|
||||||
|
self.tell_queue[user].append(res)
|
||||||
|
|
||||||
@command
|
@command
|
||||||
def timer(self, mask: IrcString, channel: IrcString, args: DocOptDict):
|
def timer(self, mask: IrcString, channel: IrcString, args: DocOptDict):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user