This repository has been archived on 2023-04-13. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
CloudBot/cloudbot.py
2013-10-02 13:43:01 +13:00

19 lines
431 B
Python

#!/usr/bin/env python
# we import bot as _bot for now, for legacy reasons
from core import bot as _bot
import os
import sys
# set up enviroment
os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
print 'CloudBot REFRESH <http://git.io/cloudbotirc>'
# create new bot object
bot = _bot.Bot("cloudbot")
bot.logger.debug("Bot initalized.")
bot.logger.debug("Starting main loop.")
while True:
bot.loop()