Skip to content

gmelfedo/telegram-mtg-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram MTG Bot

This is one-night project developed for fun by Impronta Advance team.

The project aim is to make a Telegram BOT which can easily retrieve Magic: The Gathering® card's prices from MagicCardMarket.

Commands

/price card[, card]*

Bot should return the prices for the first 10 cards that match card parameter. It can search multiple cards if comma-separated

Example:

# User:
/price snapcaster, izzet staticaster

# BOT:
Snapcaster Mage     INN     € 35.50 | € 44.34
Snapcaster Mage     DCI     € 78.50 | € 76.42
---------------------------------------------
Izzet Staticaster   RTR     €  0.02 | €  0.18

The architecture

The system will be based on multiple services orchestrating by Docker.

Telegram service

It should provide integration with Telegram, receving chat's commands and translating them into internal calls.

BOT Price service

It should provide REST API to handle price requests from external services. It should decide what price-provider should be contacted.

MKM api service

It should provide REST API to find cards prices into MKM.

Web service (AKA Cool! But I don't use Telegram)

It should provide web interface where anybody can query cards' prices from desktop, mobile and tablets. (Sorry MKM, you're mobile version is really slow!)

MIT License

Copyright © 2016 Matteo Manchi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The cards' names and images are Copyright © Wizards of the Coast - All Rights Reserved. This project, software and website are not affiliated in any way nor with Wizards of the Coast nor Magic Card Market.

About

Telegram BOT for MTG cards infos and prices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.1%
  • JavaScript 0.9%