https://linen.dev logo
unable to deploy discord bot
# help
e
k
It looks like your app panicked on startup, do a
cargo shuttle deployment list
and then a
cargo shuttle logs <id of last deployment>
e
when i use cargo shuttle run
k
That looks like you are providing the incorrect gateway intents to your serenity client
Or they are correct but you didn't set the correct permissions when creating your bot
e
uff my bad
but still
even when its running
k
Is your app a custom service that is both a discord bot and an http server? If so, do you serve anything at the
/
endpoint?
e
nah nothing
this is just a hello world example
didnt even write single extra line from default setup
k
Oh, so this is not a discord bot?
e
no this is hello world discord serenity example
discord bot
k
Ah, it won't serve anything to your browser, you have to invite the bot to a discord channel and then send the hello command there
See the readme in the shuttle serenity hello world example for how to invite the bot to your channel.
e
thats my problem im not getting any redirect uri which makes me not able to choose a url thats why i thought i need to deploy so that i can get a invite link from website
k
Here is another guide on how to create a bot: . And here is one on how to invite the bot: .
The official docs are also good:
e
ah shit i forgot to say
its working
the problem is i want to track rpc
so i clicked on rpc.voice.read
and its not showing url
but removing it does
k
Hmm, I don't know that much about the discord side of this, maybe they can help with this in the serenity discord?
7 Views