def main(): bot = IRC_Bot(IRC_SERVER, IRC_PORT, IRC_NICK, IRC_PASS, IRC_SSL) bot.add_execute_delayed(IRC_TIMER_SEC, call_timer, (bot,)) bot.start()
def call_timer(bot): """ タイマー関数 この中で定期的に実行する操作を定義 """ bot.add_execute_delayed(IRC_TIMER_SEC, call_timer, (bot,))