This is the main repo for Werewolf for Telegram.
For language file updates, please submit the xml file on Telegram to the support chat and ask for assistance
To set up werewolf on a private server, follow these steps:
HKLM\SOFTWARE\
, create a new Key named Werewolf
(HKLM - HKEY_LOCAL_MACHINE)ProductionAPI
. werewolf
database and all the tables / views / stored procs to go with itdbo.Admin
table
DBConnectionString
, Application Scope, and set the Value to your SQL connection string for the database you created in step 2
metadata=res://*/WerewolfModel.csdl|res://*/WerewolfModel.ssdl|res://*/WerewolfModel.msl;provider=System.Data.SqlClient;provider connection string="data source=SERVERADDRESS;initial catalog=werewolf;user id=USERNAME;password=PASSWORD;MultipleActiveResultSets=True;App=EntityFramework"
RELEASE
build. You may want to go into Werewolf_Control.Handlers.UpdateHandler.cs
and change internal static int Para = 129046388;
to match your id. Also, double check the settings.cs files in both Control and Node.Server directories
Directory | Contents |
---|---|
root\Control |
Control build |
root\Node 1 |
Node build |
root\Node <#> |
Node updates can be added to a new Node folder. Running /replacenodes in Telegram will tell the bot to automatically find the newest node (by build time) and run it |
root\Logs |
Node crash directory |
root\Languages |
Language xml files |
/replacenodes
. Again, the bot will always take whichever node it finds that is the newest, as long as the directory has Node
in the name. do not name any other directory in the root folder anything with Node
in itIn order to use GIFs with the bot, you will need to "teach" the bot the new GIF IDs. From Telegram, run /learngif
, the bot will respond with GIF learning = true
. Now send it a GIF, and the bot will reply with an ID. Send the bot all the GIFs you need. In the Node project, go to Helpers > Settings.cs and find the GIF lists. You'll need to remove all of the existing IDs and put in the IDs you just got from the bot.
You can test these by running /dumpgifs
(preferrably in PM!). Make sure you check out DevCommands.cs, and look at the DumpGifs()
method - most of it is commented out. Uncomment what you need.