cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
66 stars 34 forks source link

Redundant messages form single command. #205

Closed scooterg2004 closed 2 years ago

scooterg2004 commented 2 years ago

Issues started after v3.0

When using commands in discord, bot replies with multiple redundant messages. for example when using !status the bot will post 2 status messages. when !snapshot is used it posts 4 snapshots.

I have uninstalled and cleaned data, rebooted octopi server, kicked the bot, deleted old bot from dev portal and started all over and the issue persists.

cameroncros commented 2 years ago

I assume closed because you found a fix? I haven't seen this before.

cameroncros commented 2 years ago

I am getting this as well. The second message is missing the screenshot though

scooterg2004 commented 2 years ago

Yes I did. Steps taken in this order fixed it for me.

  1. kick bot from discord
  2. Delete bot from discord dev portal
  3. Uninstall and clean discord remote from octopi
  4. Reboot octopi
  5. Make new app/bot on discord dev
  6. Invite new bot to discord server and set permissions
  7. Reinstall discord remote and configure for new bot

Basically a fresh install but for some reason didn’t work the first time.

cameroncros commented 2 years ago

I think this happens when discord.py disconnects and reconnects. I have pushed a release with a fix