def reload(self, name='all'): '''Reloads the specified plugin. Example: !reload dice''' try: if name == 'all': for module in Plugin.library: Plugin.reload(module) else: Plugin.reload(name) except KeyError: return 'No such plugin is currently loaded. Try !load {0}'.format(name)