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

The bot crashes if anyone tries to dm it #15

Open
cc32133 opened this issue Mar 2, 2023 · 1 comment
Open

The bot crashes if anyone tries to dm it #15

cc32133 opened this issue Mar 2, 2023 · 1 comment

Comments

@cc32133
Copy link

cc32133 commented Mar 2, 2023

This is the error i get.

If anyone could help me i would be so thankful!

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x50 pc=0x81b7ec]

goroutine 83 [running]:
stable_diffusion_bot/discord_bot.(*botImpl).processImagineCommand(0xc0001de7e0, 0x20?, 0xc00000a098)
C:/stable/stable-diffusion-discord-bot-master/stable-diffusion-discord-bot-master/discord_bot/discord_bot.go:331 +0x40c
stable_diffusion_bot/discord_bot.New.func2(0x0?, 0xc00000a098)
C:/stable/stable-diffusion-discord-bot-master/stable-diffusion-discord-bot-master/discord_bot/discord_bot.go:99 +0x430
github.com/bwmarrin/discordgo.interactionCreateEventHandler.Handle(0x7fc34e?, 0xc000222380?, {0x876c40?, 0xc00000a098?}) /github.com/bwmarrin/[email protected]/eventhandlers.go:693 +0x38
created by github.com/bwmarrin/discordgo.(*Session).handle
/github.com/bwmarrin/[email protected]/event.go:171 +0x16a

shtrih added a commit to shtrih/stable-diffusion-discord-bot that referenced this issue Mar 2, 2023
shtrih added a commit to shtrih/stable-diffusion-discord-bot that referenced this issue Mar 2, 2023
@drusepth
Copy link

Just an FYI this seems to still be a bug in the latest release (v0.2.2).

For anyone else having this issue, here's a quick bash runner that'll just restart your bot any time it crashes:

while true; do ./stable_diffusion_bot -token YOUR_TOKEN -guild YOUR_GUILD_ID -host YOUR_HOST; echo "Bot crashed, restarting..."; sleep 1; done

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

No branches or pull requests

2 participants