/StoreBot

StoreBot is a Discord bot that makes use of StoreLib. Current features include generation of package urls from a given product listing, conversation of the various Store IDs, and querying details about a listing.

Primary LanguageC#Mozilla Public License 2.0MPL-2.0

StoreBot

GitHub stars GitHub Workflow - Docker GitHub Workflow - Build Docker Pulls GitHub release (latest by date)

StoreBot is a Discord bot that makes use of StoreLib. Current features include generation of package urls from a given product listing, conversation of the various Store IDs, and querying details about a listing.

Advanced Query Command

Usage:

Clone the repo and build StoreBot using Visual Studio 2019 Preview. StoreBot makes use of .NET 5, install the latest (at the time preview) SDK.

Define your Discord Bot Token in your environment variables, named STOREBOTTOKEN or edit the discordtoken line in config.json.

Run StoreBot.dll using the .NET 5 runtime or build to a exe directly:

dotnet StoreBot.dll or StoreBot.exe

Once StoreBot logs into Discord, invite the bot to the server of your choice, then refer to the "Commands" section below.

Commands:

@StoreBot help - Lists all commands. Specify a command (Example: `@StoreBot help packages`) to see more information about that command.
@StoreBot advancedquery ProductIDOrStoreLink environment MARKET-LANG - Returns details about the product from DisplayCatalog (Example: `@StoreBot advancedquery 9wzdncrfj3tj Int US-EN`)
@StoreBot packages ProductIDOrTitleIDOrStoreLink - Generates and returns FE3 links for app and Xbox Live packages. 
@StoreBot convert ID IDFormat - Returns alternative store IDs for the given listing (Example: `@StoreBot convert eaac6c6b-10a4-4659-815b-44f151eca61a LegacyWindowsStoreProductID`)
@StoreBot submittoken MSAOrXBLToken - See [StoreToken](https://github.com/StoreDev/StoreToken) on how to obtain your token. This command can only be used via Direct Message to the bot. Once your token has been submitted, it will be used for future queries (that originate from your user).

Docker instructions:

Build it yourself

docker build -t storebot_docker .
docker run -e STOREBOTTOKEN=replaceme -it --rm --name storebot storebot_docker

Running latest stable release from Dockerhub

docker run -e STOREBOTTOKEN=replaceme -it --rm storedev/store-bot

Dependencies

StoreLib DSharpPlus

License

Mozilla Public License