Skip to content

Instantly share code, notes, and snippets.

@bloodywing
Created December 27, 2018 08:31
Show Gist options
  • Save bloodywing/d92a909445b39df208276b2056c85299 to your computer and use it in GitHub Desktop.
Save bloodywing/d92a909445b39df208276b2056c85299 to your computer and use it in GitHub Desktop.
async def reset_filter(self, ctx, name):
server = ctx.message.server.id
channel = ctx.message.channel.id
try:
self.feeds[server][channel][name]['filter'] = [""]
except IndexError:
return False
self.save_feeds()
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment