Ejemplo n.º 1
0
def main():
    settings = botsettings.botsettings()

    while True:
        try:
            arandabot.arandabot(settings=settings)
        except ImportError:
            print("Import Error")
            break
        except Exception as e:
            print("{} Some unexpected exception occurred in arandabot "
                  "backing off for 5 mins and trying again:"
                  " {}".format(time.strftime('%x %X %z'), e))
            traceback.print_exc()
            time.sleep(300)
        else:
            break

    if settings.script.return_to_finish:
        input("Press return to finish script")
Ejemplo n.º 2
0
def main():
    settings = botsettings.botsettings()

    while True:
        try:
            arandabot.arandabot(settings=settings)
        except ImportError:
            print("Import Error")
            break
        except Exception as e:
            print("{} Some unexpected exception occurred in arandabot "
                  "backing off for 5 mins and trying again:"
                  " {}".format(time.strftime('%x %X %z'), e))
            traceback.print_exc()
            time.sleep(300)
        else:
            break

    if settings.script.return_to_finish:
        input("Press return to finish script")
Ejemplo n.º 3
0
'''
Created on 11 Jan 2015

@author: Damian Shaw
'''
import botsettings
import redditsubmissions

if __name__ == '__main__':
    s = botsettings.botsettings()
    r = redditsubmissions.redditsubmissions(s.reddit)
    r.deleteAllPosts()