C
C#9mo 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
Anu6is9mo 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
billazen9mo ago
Could you please explain it in more detail. Thank you in advance.
billazen
billazen9mo ago
oh god its confusing. welp guess i am staying on @ping commands
Anu6is
Anu6is9mo 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
billazen9mo ago
yeah discord told me i could use this as an alternative
Anu6is
Anu6is9mo ago
didn't the original project just move over to https://github.com/drizzle-mizzle/Character-Engine-Discord why not use that?
billazen
billazen9mo ago
because no original works too good
Anu6is
Anu6is9mo ago
¯\_(ツ)_/¯
billazen
billazen9mo ago
ive already changed on how i use intents that was a pain even chatgpt aint helpful as its too complex for it 🤔
Anu6is
Anu6is9mo ago
it probably doesn't have much info on slash commands
billazen
billazen9mo ago
so dont i
Anu6is
Anu6is9mo ago
you have docs 🙃
billazen
billazen9mo 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
billazen9mo ago
this is what mine is currently
Anu6is
Anu6is9mo ago
might be easier to remove the extra stuff from the updated project than updating the old one though
billazen
billazen9mo 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
Anu6is9mo ago
oh
billazen
billazen9mo 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
Anu6is9mo ago
unexpected outcome... cool
billazen
billazen9mo ago
Well it comes at a financial cost
Anu6is
Anu6is9mo ago
lol ok
Accord
Accord9mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.