Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup #47

Open
2 tasks
janvernieuwe opened this issue Apr 24, 2020 · 1 comment
Open
2 tasks

Code cleanup #47

janvernieuwe opened this issue Apr 24, 2020 · 1 comment
Labels
enhancement New feature or request low difficulty Good for newcomers
Milestone

Comments

@janvernieuwe
Copy link
Member

  • Remove unused config values
  • Remove .sh script, you can just run python -u discordpy.py and on the VPS is in supervisor
@janvernieuwe janvernieuwe added low difficulty Good for newcomers enhancement New feature or request labels Apr 24, 2020
@janvernieuwe janvernieuwe modified the milestones: 1.0.3, 1.0.4 Apr 26, 2020
@janvernieuwe
Copy link
Member Author

Also improve the handling of this exception:

Ignoring exception in on_raw_reaction_add
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/discord/client.py", line 312, in _run_event
    await coro(*args, **kwargs)
  File "/home/root/haamcbot/cogs/channels.py", line 211, in join
    await message.add_user(user)
  File "/home/root/haamcbot/cogs/channels.py", line 69, in add_user
    await channel.send(f":inbox_tray: {user.mention} joined")
  File "/usr/local/lib/python3.8/dist-packages/discord/abc.py", line 856, in send
    data = await state.http.send_message(channel.id, content, tts=tts, embed=embed, nonce=nonce)
  File "/usr/local/lib/python3.8/dist-packages/discord/http.py", line 221, in request
    raise Forbidden(r, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low difficulty Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant