first
This commit is contained in:
18
bot.py
Normal file
18
bot.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import sys
|
||||
|
||||
from AiBot import AiBot
|
||||
from daemon.SimpleDaemon import Daemon
|
||||
|
||||
|
||||
class DaBotDaemon(Daemon):
|
||||
def run(self):
|
||||
ai_bot = AiBot()
|
||||
ai_bot.run()
|
||||
|
||||
|
||||
# Press the green button in the gutter to run the script.
|
||||
if __name__ == '__main__':
|
||||
# with DaBotDaemon('/tmp/daemon-dabot.pid', error_log_file='errlog.txt') as daemon:
|
||||
# daemon.process_command()
|
||||
ai_bot = AiBot()
|
||||
ai_bot.run()
|
||||
Reference in New Issue
Block a user