C
C#15mo ago
billazen

❔ going from prefix commands to slash commands in discord.net

So the creator of this repo has archived the repo. Does anyone know, how can i easily convert to use slash commands? Here is the link to the repo https://github.com/drizzle-mizzle/CharacterAI-Discord-Bot
GitHub
GitHub - drizzle-mizzle/CharacterAI-Discord-Bot: CharacterAI for yo...
CharacterAI for your Discord server. Contribute to drizzle-mizzle/CharacterAI-Discord-Bot development by creating an account on GitHub.
23 Replies
Anu6is
Anu6is15mo ago
you'd have to convert all classes inheriting from ModuleBase<SocketCommandContext> to inherit from InteractionModuleBase<SocketInteractionContext> instead and whatever changes to the logic within the methods that that may entail... in particular interactions should be using respond instead of reply
billazen
billazenOP15mo ago
Could you please explain it in more detail. Thank you in advance.
billazen
billazenOP15mo ago
oh god its confusing. welp guess i am staying on @ping commands
Anu6is
Anu6is15mo ago
you would have to change how you register commands as it's not going to be the message recieved handler anymore https://github.com/discord-net/Discord.Net/blob/dev/samples/InteractionFramework/InteractionHandler.cs
billazen
billazenOP15mo ago
yeah discord told me i could use this as an alternative
Anu6is
Anu6is15mo ago
didn't the original project just move over to https://github.com/drizzle-mizzle/Character-Engine-Discord why not use that?
billazen
billazenOP15mo ago
because no original works too good
Anu6is
Anu6is15mo ago
¯\_(ツ)_/¯
billazen
billazenOP15mo ago
ive already changed on how i use intents that was a pain even chatgpt aint helpful as its too complex for it 🤔
Anu6is
Anu6is15mo ago
it probably doesn't have much info on slash commands
billazen
billazenOP15mo ago
so dont i
Anu6is
Anu6is15mo ago
you have docs 🙃
billazen
billazenOP15mo ago
sad that cs isnt in my school program i know character engine has more features but I like the simplicity i even cut off some other commands and blocked them from using without approval wait lemme log in to my panel
billazen
billazenOP15mo ago
this is what mine is currently
Anu6is
Anu6is15mo ago
might be easier to remove the extra stuff from the updated project than updating the old one though
billazen
billazenOP15mo ago
well.. its difficult yeah characterengine is not suitable its a multi-character bot while the one i use is for single character only
Anu6is
Anu6is15mo ago
oh
billazen
billazenOP15mo ago
+ each character is not global but actually per single channel I got the developer of the bot to start rewriting the code + new features
Anu6is
Anu6is15mo ago
unexpected outcome... cool
billazen
billazenOP15mo ago
Well it comes at a financial cost
Anu6is
Anu6is15mo ago
lol ok
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server