Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

[Bug] Antilink not deleting links #35

Open
ghost opened this issue Aug 9, 2017 · 2 comments
Open

[Bug] Antilink not deleting links #35

ghost opened this issue Aug 9, 2017 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 9, 2017

  • Cog:
    Antilink
  • Issue description:
    Not deleting links
  • Reproduction Steps:
    Well, I don't know.
  • Traceback of error (Console):
Traceback (most recent call last):
  File "lib\discord\ext\commands\bot.py", line 252, in _run_extra
    yield from coro(*args, **kwargs)
  File "C:\Other Program\Red-DiscordBot\cogs\antilink.py", line 139, in _new_message
    if message.channel.id in self.json[message.server.id]['excluded_channels']:
KeyError: 'excluded_channels'
Ignoring exception in message
Traceback (most recent call last):
  File "lib\discord\ext\commands\bot.py", line 252, in _run_extra
    yield from coro(*args, **kwargs)
  File "C:\Other Program\Red-DiscordBot\cogs\antilink.py", line 139, in _new_message
    if message.channel.id in self.json[message.server.id]['excluded_channels']:
KeyError: 'excluded_channels'
@xXFireBunnyXx
Copy link

that error is because 'excluded_channels' is missing from your antilink.json

@Kowlin Kowlin added the bug label Aug 11, 2017
@Kowlin
Copy link
Owner

Kowlin commented Aug 11, 2017

Sorry for the late response, but this can be solved by adding and removing a excluded channel. I've got a patch that addresses this that I will push later today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants