tomzmtl / saltistic

A Smash Bros statistics app. No longer maintained.
http://saltistic.petate.io
MIT License
2 stars 0 forks source link

Discord Bot specs #13

Closed tomzmtl closed 8 years ago

DrDyne commented 8 years ago

As a player, I want to be able to interact with a bot on Discord to get...

DrDyne commented 8 years ago

https://github.com/hammerandchisel/airhornbot <-- open source discord bot

tomzmtl commented 8 years ago

AirHornBot is written in Go. PHP library for Discord API: https://github.com/Cleanse/discord-hypertext

Not sure about our implementation.. where should the bot code be hosted? The main app server, a dedicated server?

DrDyne commented 8 years ago

As a tournament admin, I want to be able to create and follow-up a match between 2 players... DrDyne: !matchup RY and Mr.Petate SaltBot: How many stocks? DrDyne: 2 SaltBot: What is RY playing? DrDyne: ZSS SaltBot: What is Mr.Petate playing? DrDyne: Cloud SaltBot: Match #482 is running, GL & HF ... DrDyne: !matchup #482 2 1 SaltBot: GG RY ! ...

DrDyne: !matchup #482 SaltBot: RY vs Mr.Petate 2 - 1 SaltBot: http://saltistics.io/matchups/482

DrDyne commented 8 years ago

This is only a proposition.

DrDyne commented 8 years ago

The bot can be hosted wherever. It should have a low-enough profile on resources to be hosted on the main app server.

tomzmtl commented 8 years ago

@DrDyne is !salt a general keyword to access all Saltistic commands?

Can it be used to prefix subcommands like

tomzmtl commented 8 years ago

@DrDyne Nevermind, saw your other post.

DrDyne commented 8 years ago

https://discordapp.com/invite/0SBTUU1wZTUzBx2q <-- discord community server to talk about discord Bots. The more I think about that, the more I want to code it (I might also code one for eve-online).

tomzmtl commented 8 years ago

Be my guest. One thing is certain: I need to expose the features we want to use in the app.

Something like (salt-y-meter score, for instance):

GET saltistic.petate.io./api/v1/salt/RY

{
  score: 24,
  rank: 3
}
tomzmtl commented 8 years ago

Public API issue: https://github.com/tomzmtl/Saltistic/issues/15

tomzmtl commented 8 years ago

Public API release 1 is live! See docs here: https://github.com/tomzmtl/Saltistic/wiki/Public-API-docs