Hubs-Foundation / hubs-discord-bot

A Discord bot that helps you use Hubs together with people in Discord.
Mozilla Public License 2.0
50 stars 31 forks source link

Make bot create webhook on bridging if doesn't exist #63

Closed mqp closed 5 years ago

mqp commented 5 years ago

Now it should work like this:

  1. When you establish a bridge, either via !hubs create or by manually changing the topic, if no webhook exists in the channel, the bot will attempt to make one.
  2. When you change the webhooks in the channel, the bot will take a look and use whatever webhook is best, or notice that none exist anymore. However, it won't create a new one if none exist.

The bot will let you know if it tries to do these things and fails due to lack of permissions, or if you remove the Hubs webhook when a bridge is running.

In addition, webhooks the bot makes now get a duck avatar so they look nice in chat. We should really figure out how to get a little thumbnail of people's avatars so we can use that when bridging their chat.