Valour-Software / Valour

Valour is bringing communities into the future with unique features, blazing performance, and respect for users.
https://valour.gg
GNU Affero General Public License v3.0
176 stars 23 forks source link

📦 Feature - Bot API #197

Closed Snails-Of-Wrath closed 3 years ago

Snails-Of-Wrath commented 3 years ago

Is your feature request related to a problem? Please describe. I’m a way, yes. Bots can’t really send messages without an API.

Describe the solution you'd like An API needs to be made so VAPP can be used to create working bots

Describe alternatives you've considered Python sending messages through Chrome but that really isn’t a good solution

fruitcake5 commented 3 years ago

Bots can use the same api as users

ghost commented 3 years ago

but is there an easy way to do use the api / consider the account as a bot?

SentyFunBall commented 3 years ago

Hi yes VAPP dev here, we are currently working towards using user accounts as bots for now, hoping there will be a way to differentiate between bot and user accounts in the future. Maybe specialized tokens that will label the associated account as [BOT] or something?

fruitcake5 commented 3 years ago

Hi yes Valour dev here, there will be ways to differentiate between user and bot accounts and probably a separate api but for now you're stuck with using c# and signalr

Sending messages can be done with a post request but i assume you also want to recieve

fruitcake5 commented 3 years ago

Also gonna shoehorn this in

Ban selfbotting when bots have their own api and registration system

SentyFunBall commented 3 years ago

Tehe but they don't right now so user accounts go brrr.

superjacobl commented 3 years ago

Basically most of the user api routes is/will work for bots, if not all. We may add special api routes/features for bots in the future, but right now there is no plan for a separate bot api. You can send messages using the api route as clients.