mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
minor fixing
This commit is contained in:
parent
065c91ea81
commit
1ee4c6c12c
1 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ class AhenkDeamon(BaseDaemon):
|
|||
time.sleep(1)
|
||||
|
||||
if agreement_choice is not None:
|
||||
messenger.send_direct_message(message_manager.agreement_answer_msg(username, str(agreement_choice).lower()))
|
||||
messenger.send_direct_message(message_manager.agreement_answer_msg(username, agreement_choice))
|
||||
else:
|
||||
agreement_choice = True
|
||||
|
||||
|
@ -321,7 +321,7 @@ if __name__ == '__main__':
|
|||
if len(sys.argv) == 2 and (sys.argv[1] == 'start' or sys.argv[1] == 'stop' or sys.argv[1] == 'restart' or sys.argv[1] == 'status'):
|
||||
if sys.argv[1] == 'start':
|
||||
if System.Ahenk.is_running() is True:
|
||||
print('There is running Ahenk service. It will be killed.')
|
||||
print('There is already running Ahenk service. It will be killed.')
|
||||
print(str(System.Ahenk.get_pid_number()))
|
||||
System.Process.kill_by_pid(int(System.Ahenk.get_pid_number()))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue