from motobot import IRCBot
import desubot as self


if __name__ == '__main__':
    self.bot.run()
else:
    bot = IRCBot('desubot', 'irc.rizon.net')

from motobot import IRCBot


bot = IRCBot('desubot', 'irc.rizon.net')

if __name__ == '__main__':
    bot.run()

Remove silly self import