This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sopel.module | |
| import time | |
| nicklist = {} | |
| paylist = {} | |
| @sopel.module.event('JOIN') | |
| @sopel.module.rule('.*') | |
| def greeting(bot, trigger): | |
| if trigger.sender == '#monero-pools' and trigger.nick != bot.nick: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new_list = [do_something_with(x) for x in old_list] | |
| # is basically short for | |
| new_list = [] | |
| for x in old_list: | |
| new_list.append(do_something_with(x)) |