freiheit / discord_feedbot

Moved to https://gitlab.com/ffreiheit/discord_feedbot
MIT License
81 stars 28 forks source link

function clean up #8

Closed SaOgaz closed 8 years ago

SaOgaz commented 8 years ago

Should really have most line above and below your other functions also in functions, then call those at the bottom of the script using a

if  __name__ == "__main__":
    func1()
    func2()

from stack overflow: "By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves."