Hello,
Due to all the none techie guys/girls in the guild I am in kept asking for help to do simulationcrafts to get stat weights and check dps did I take on the task on creating a discord bot that does all the boring stuff for you.
This bot will require you having a TCI version of simulationcraft on the server the bot is running and a webserver is needed too. I would recommend having a CPU(s) with a total of at least 8 threads, else a sim will take too long.
All setting are set from a .json file. This file needs to configured to your needs.
Right now the bot does a 25000 iterations, this number can be set in user_data where you can tell it to use either the simulation ingame addon string or armory, stat scaling can also be activated.
Bot has been tested on the following systems:
- Debian 8
- Ubuntu 16.04
- RHEL 7
- FreeBSD 11.0 SimulationCraft does not build well in FreeBSD
- Windows 2016 Server
Feel free to test it and come with input on what needs to be improved or features missing.
https://github.com/stokbaek/simc-discord
example of .json file:
Code:{ "server_opt": [ { "serverid": "244541647122580469", "channelid": "266793125324014828", "token": "DISCORD BOT TOKEN" } ], "simcraft_opt": [ { "website": "WEBSITE ADDR", "api_key": "KEY", "htmldir": "/var/www/simc/", "default_realm": "magtheridon", "executable": "/usr/local/sbin/simc-715", "region": "eu", "allow_iteration_parameter": true, "default_iterations": "25000", "fightstyles": ["Patchwerk", "LightMovement" ,"HeavyMovement", "HecticAddCleave", "HelterSkelter"], "aoe_targets": 6 } ] }
- serverid is used to change presence of the bot, this is what the bot uses to check if a simulation is running.
- channelid is used to tell the bot what channel people are allowed to use the bot in. (Version check and help command is excluded for this lock)
Any problems can we made as an issue on github or PM me on discord: stokbaek#1042