open source – Library for writing slash commands across Discord, Slack, Microsoft Teams, Google Chat, etc


I was starting to write a Discord bot for a server I’m in, using Discord’s Interactions API. I noticed however that the API is at least somewhat similar to Slack’s Slash Command API and Google Chat’s Slash Commands. MS Teams seems to also provide a similar API, though I haven’t looked that deeply into it.

Although these APIs have differences, they seem to all be handling the same user intents, and it seems like it should be possible to write a library that abstracts away the differences between them and allows developers to reuse code across the various platforms.

However, in my searching, I cannot seem to find a library or framework that supports multiple chat services. I am looking for a library or framework, ideally in Python or JavaScript (but I will accept any language), that combines two or more chat services into a similar API. Additionally, if this is not as feasible as I think it is, and you know why, I would appreciate that feedback as well.

Note that I’m not too worried about copying the entire functionality of chatbots. I know Discord’s websocket API is quite powerful, and I wouldn’t expect it to be transferrable to other services. So I only really care about the “slash commands” intent.



Source link

Related Posts

About The Author

Add Comment