def setup_resources(config: dict, shared: dict): import os.path shared['told.tuple'] = load_textfile(os.path.join(shared['dir'], 'data/told.txt')) logging.info('ready to get told?') shared['help']['told'] = 'Get told hard - :told <person>' shared['help']['nottold'] = 'Don\'t get told - :nottold <person>'
def setup_resources(config: dict, shared: dict): import os.path shared['rekt.tuple'] = load_textfile(os.path.join(shared['dir'], 'data/rekt.txt')) logging.info('ready to get rekt?') shared['help']['rekt'] = 'Get rekt hard || :rekt <person> || :rekt your mum' shared['help']['notrekt'] = 'Don\'t get rekt || :notrekt <person> || :notrekt me' shared['cooldown']['rekt'] = 4 shared['cooldown']['notrekt'] = 4
def setup_resources(config: dict, shared: dict): import os.path shared['rekt.tuple'] = load_textfile( os.path.join(shared['dir'], 'data/rekt.txt')) logging.info('ready to get rekt?') shared['help'][ 'rekt'] = 'Get rekt hard || :rekt <person> || :rekt your mum' shared['help'][ 'notrekt'] = 'Don\'t get rekt || :notrekt <person> || :notrekt me' shared['cooldown']['rekt'] = 4 shared['cooldown']['notrekt'] = 4
def setup_resources(config: dict, shared: dict): ''' Plugin callback to set up shared resources. ''' import os.path shared['boat'] = load_textfile(os.path.join(shared['dir'], 'data/boat.txt')) logging.info('boat loaded') shared['help']['partyboat'] = 'Start the party boat! || :partyboat [word1] [word2] || :partyboat Hail Hydra' shared['help']['pb'] = 'Alias to the :partyboat command' shared['cooldown']['partyboat'] = 8 shared['cooldown']['pb'] = 'partyboat'
def setup_resources(config: dict, shared: dict): ''' Plugin callback to set up shared resources. ''' import os.path shared['boat'] = load_textfile(os.path.join(shared['dir'], 'data/boat.txt')) logging.info('boat loaded') shared['help'][ 'partyboat'] = 'Start the party boat! || :partyboat [word1] [word2] || :partyboat Hail Hydra' shared['help']['pb'] = 'Alias to the :partyboat command' shared['cooldown']['partyboat'] = 8 shared['cooldown']['pb'] = 'partyboat'