Error fixes
This commit is contained in:
parent
64f25c5674
commit
249a8af0b9
|
@ -39,6 +39,7 @@ class CommandHandler(Handler):
|
||||||
|
|
||||||
return self.callback(dispatcher.bot, update, **optional_args)
|
return self.callback(dispatcher.bot, update, **optional_args)
|
||||||
|
|
||||||
|
|
||||||
def handle(self, bot, update, args):
|
def handle(self, bot, update, args):
|
||||||
try:
|
try:
|
||||||
command = self.__parse_command_name(update)
|
command = self.__parse_command_name(update)
|
||||||
|
@ -63,7 +64,7 @@ class CommandHandler(Handler):
|
||||||
/ping,
|
/ping,
|
||||||
/get_stats: get information on how many pairs are known by ImaginaryFriend,
|
/get_stats: get information on how many pairs are known by ImaginaryFriend,
|
||||||
/set_chance: set the probability that ImaginaryFriend would reply to a random message (must be in range 1-50, default: 5),
|
/set_chance: set the probability that ImaginaryFriend would reply to a random message (must be in range 1-50, default: 5),
|
||||||
/get_chance: get current probability that ImaginaryFriend would reply to a message.')"""
|
/get_chance: get current probability that ImaginaryFriend would reply to a message.')""")
|
||||||
|
|
||||||
|
|
||||||
def __ping_command(self, update, args):
|
def __ping_command(self, update, args):
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Pair(Model):
|
||||||
|
|
||||||
# TODO Move to config
|
# TODO Move to config
|
||||||
end_sentence = '.....!!?'
|
end_sentence = '.....!!?'
|
||||||
all = '.!?,;:()"\'
|
all = '.!?,;:()\"'
|
||||||
|
|
||||||
@has_many
|
@has_many
|
||||||
def replies(self):
|
def replies(self):
|
||||||
|
|
Loading…
Reference in New Issue