removed obsolete \prune command
This commit is contained in:
parent
ed2f1444a5
commit
81687c9402
|
@ -39,7 +39,6 @@ class Bot():
|
||||||
|
|
||||||
self.commands = {
|
self.commands = {
|
||||||
"help": self._help,
|
"help": self._help,
|
||||||
"prune": self._prune,
|
|
||||||
"groups": self._groups,
|
"groups": self._groups,
|
||||||
"getgroups": self._getgroups
|
"getgroups": self._getgroups
|
||||||
}
|
}
|
||||||
|
@ -76,7 +75,6 @@ class Bot():
|
||||||
def _help(self):
|
def _help(self):
|
||||||
self.send("""following bot commands are available:
|
self.send("""following bot commands are available:
|
||||||
\\help show this message
|
\\help show this message
|
||||||
\\prune clear your buddylist
|
|
||||||
|
|
||||||
following user commands are available:
|
following user commands are available:
|
||||||
\\lastseen request last online timestamp from buddy
|
\\lastseen request last online timestamp from buddy
|
||||||
|
@ -86,11 +84,6 @@ following group commands are available
|
||||||
\\groups print all attended groups
|
\\groups print all attended groups
|
||||||
\\getgroups get current groups from WA""")
|
\\getgroups get current groups from WA""")
|
||||||
|
|
||||||
def _prune(self):
|
|
||||||
self.session.buddies.prune()
|
|
||||||
self.session.updateRoster()
|
|
||||||
self.send("buddy list cleared")
|
|
||||||
|
|
||||||
def _groups(self):
|
def _groups(self):
|
||||||
for group in self.session.groups:
|
for group in self.session.groups:
|
||||||
buddy = self.session.groups[group].owner
|
buddy = self.session.groups[group].owner
|
||||||
|
|
Loading…
Reference in a new issue