Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1022 commits
Select commit Hold shift + click to select a range
a0ade51
Merge pull request #472 from Flowiee/patch-3
Olgabrezel Jan 12, 2020
1497677
Add custom win message as prize for the 2019 christmas event
Olgabrezel Jan 13, 2020
be9005b
Allow for stricter role configurations if the "Max Players" is set low
Olgabrezel Jan 13, 2020
00f626e
Do notify frozen cultists of their teammates' actions
Olgabrezel Jan 13, 2020
9ca02cf
Make sure HunterFinalShot happens last when the deaths are notified
Olgabrezel Jan 13, 2020
4fe03fc
Fix hunter shooting for arsonist kills having a lover (ig)
Olgabrezel Jan 13, 2020
f11628d
Create a FixGifs command (hopefully that works)
Olgabrezel Jan 13, 2020
f8eb9a2
New Description for GIF unlock
Flowiee Jan 29, 2020
070d7f3
Merge pull request #474 from Flowiee/beta
Olgabrezel Jan 29, 2020
496284f
Valentine's special 2020
Olgabrezel Feb 13, 2020
b82d9c1
I love bot api updates
Olgabrezel Feb 13, 2020
66fade6
Update Werewolf.cs
Flowiee Feb 14, 2020
503efed
Merge pull request #476 from Flowiee/patch-1
Olgabrezel Feb 14, 2020
d2310f6
Merge pull request #477 from GreyWolfDev/beta
Olgabrezel Feb 14, 2020
e928ee5
Change the grouplist calculation formula. Let's see.
Olgabrezel Feb 25, 2020
c38677a
Round the ranking, as before.
Olgabrezel Feb 25, 2020
765a296
Merge branch 'beta'
Olgabrezel Feb 25, 2020
8d6f408
Attempt to add the list of current cultists in the message of new con…
Flowiee Mar 20, 2020
d98f652
Fixed Syntax Error
Flowiee Mar 20, 2020
ce41334
fix xsolla
jeffffc Mar 23, 2020
31fc56e
Merge branch 'beta' of https://github.com/greywolfdev/werewolf into beta
jeffffc Mar 23, 2020
fdad45e
try to fix the bot issue
jeffffc Mar 23, 2020
7b34263
debug only msg
jeffffc Mar 23, 2020
ac6b393
reload lang files every 20mins not 1
jeffffc Mar 23, 2020
e2bebb3
update queue cleaner to do a fast wipe
parabola949 Mar 23, 2020
b1253bf
Fix OHAIDER
parabola949 Mar 24, 2020
8bc2600
Merge branch 'beta' of https://github.com/GreyWolfDev/Werewolf into beta
parabola949 Mar 24, 2020
7d5aa7a
Another attempt
parabola949 Mar 24, 2020
a263f60
sigh
parabola949 Mar 24, 2020
298a715
Another fix...
parabola949 Mar 24, 2020
e0bb5d8
ONE MORE
parabola949 Mar 24, 2020
8ecf1e0
internal screeching
parabola949 Mar 24, 2020
b4f75b3
Another attempt at handling api lag
parabola949 Mar 24, 2020
b088883
Slightly higher toss out time
parabola949 Mar 24, 2020
a6ec5dd
Merge branch 'master' into beta
Olgabrezel Mar 25, 2020
26785d0
Actually make the queue cleaner wipe
Olgabrezel Mar 25, 2020
0dbb5b5
Clear updates for real!
parabola949 Mar 25, 2020
d58ff63
merge
parabola949 Mar 25, 2020
389253d
Fix ohaider sending message to wrong id
parabola949 Mar 26, 2020
76cbde0
Add a notification in Cultist PM when CH visit them
Flowiee Mar 27, 2020
37de7bc
Merge branch 'master' into beta
Olgabrezel Mar 30, 2020
9cd441d
Update queue cleaner once again
Olgabrezel Mar 30, 2020
641f616
Merge pull request #488 from Flowiee/patch-2
Olgabrezel Mar 30, 2020
48c8f80
Fix variable name already existing in scope
Olgabrezel Mar 30, 2020
9cfe1a2
Syncing langfiles from Telegram
jeffffc Mar 30, 2020
34886e2
Only download distinct GIFs on FixGifs command, close #485
Olgabrezel Mar 30, 2020
0193f77
Nothing really changed, allow for more modes than normal and chaos in…
Olgabrezel Mar 30, 2020
1fafec0
Merge branch 'beta' of https://github.com/greywolfdev/Werewolf into beta
Olgabrezel Mar 30, 2020
390f922
Fix beta startgame messages
Olgabrezel Mar 30, 2020
a85e298
Change the Today's Special achievement
Olgabrezel Mar 31, 2020
a820e56
April Fool's (to be reverted later)
Olgabrezel Mar 31, 2020
e5240fb
Fix infinite troll games (smh)
Olgabrezel Apr 1, 2020
2ce5936
ACTUALLY fix the infinite games
Olgabrezel Apr 1, 2020
e7e97c7
Another desperate attempt to stop games idling forever
Olgabrezel Apr 1, 2020
45e4ed1
Revert "Another desperate attempt to stop games idling forever"
Olgabrezel Apr 2, 2020
dcfe549
Revert "ACTUALLY fix the infinite games"
Olgabrezel Apr 2, 2020
47e4195
Revert "Fix infinite troll games (smh)"
Olgabrezel Apr 2, 2020
fe42ca1
Revert "April Fool's (to be reverted later)"
Olgabrezel Apr 2, 2020
e9ce640
Updated streetwise description
Flowiee Apr 4, 2020
7561212
Updating Custom Win messages
Flowiee May 13, 2020
debaadc
Submit message changed
Flowiee May 13, 2020
d8b889b
Merge pull request #508 from Flowiee/patch-3
Olgabrezel May 30, 2020
fae8846
Merge pull request #519 from Flowiee/patch-4
Olgabrezel May 30, 2020
5698204
Add usage chart in test command
Olgabrezel Jun 3, 2020
c7f987b
Fix Lone Wolf condition, close #507
Olgabrezel Jun 3, 2020
cbb08df
Fix Mason Brother condition, close #490
Olgabrezel Jun 3, 2020
dd49199
Send ThiefStealDead to full thief, close #491
Olgabrezel Jun 3, 2020
4dd5c28
Stop people from spamming GIF submits, close #496
Olgabrezel Jun 3, 2020
bc5a89a
Don't let people join if the GetChatMember request fails, close #498
Olgabrezel Jun 3, 2020
5f8738d
Don't let hunter shoot when burnt, close #499
Olgabrezel Jun 3, 2020
010efbf
Make config buttons use private language, close #502
Olgabrezel Jun 3, 2020
51ffbc3
Move group check before admin check, close #506
Olgabrezel Jun 3, 2020
e439bba
Check that the person who changes a config setting is actually still …
Olgabrezel Jun 3, 2020
4bae6d3
Merge branch 'beta' of https://github.com/greywolfdev/Werewolf into beta
Olgabrezel Jun 3, 2020
1e757f0
Maybe fix fixgifs?
Olgabrezel Jul 3, 2020
5023f05
Merge pull request #537 from GreyWolfDev/beta
Olgabrezel Jul 3, 2020
8a5e962
change http links to https
Jul 11, 2020
96759fc
Merge pull request #539 from gheysar-official/master
Olgabrezel Jul 12, 2020
a1c9bdb
Stop the beta bot from spamming me
Olgabrezel Aug 23, 2020
92a72fd
Try to improve balancing regarding thief
Olgabrezel Aug 26, 2020
a360c8a
Fix grouplist?
Olgabrezel Sep 17, 2020
af35752
Add Cordarion to LangAdmins
Olgabrezel Sep 25, 2020
770478d
Return group config's messages in user's private language
CordarionTheGrey Sep 27, 2020
9c656d7
Merge pull request #549 from CordarionTheGrey/config-lang
Olgabrezel Sep 27, 2020
0659ddf
Fix getlang -> All
Olgabrezel Sep 27, 2020
598be60
Empty language directory
Olgabrezel Sep 27, 2020
9ee2523
Add current files to language directory
Olgabrezel Sep 27, 2020
b8dc8d1
Warn when uploading a file with isDefault set to true
Olgabrezel Sep 27, 2020
229354c
Improvements for debugging
Olgabrezel Sep 27, 2020
bdbe6c5
Add warning for anonymous admins
Olgabrezel Oct 5, 2020
2692d98
Improve how isDefault is displayed, add logging to git commit when up…
Olgabrezel Oct 7, 2020
433c24f
Syncing langfiles from Telegram (English.xml update)
jeffffc Oct 7, 2020
9c73313
Add back the language files (oopsie)
jeffffc Oct 7, 2020
9d382be
Make Arsonist successfully douse GD if they don't trip (#552)
LeonSama-MoA Nov 17, 2020
dfa0869
Hunter bug fixed (#557)
Mehdi-Wolf Dec 22, 2020
efc5beb
Add back Languages.projitems, hopefully fix builds
Olgabrezel Dec 26, 2020
49ac8c9
Allow to permban unknown players, also allow to permban with beta
Olgabrezel Dec 26, 2020
6e8567c
Custom Win messages Christmas Event winners 2020
Olgabrezel Jan 4, 2021
233fe26
Fix syntax error oops
Olgabrezel Jan 4, 2021
f47865a
Edit win message (#559)
Mehdi-Wolf Jan 8, 2021
60b06d1
General Fixes (#564)
Flowiee Jan 30, 2021
51a41be
Add some situations for no winner game end. (#561)
qokab Jan 30, 2021
8de6714
Syncing langfiles from Telegram (English.xml update)
jeffffc Feb 12, 2021
4e1b99f
Fix #564
Olgabrezel Feb 12, 2021
352ddfb
Valentines 2021
jeffffc Feb 12, 2021
e400925
Valentines 2021
jeffffc Feb 12, 2021
12ddfb3
Merge branch 'beta'
Olgabrezel Mar 26, 2021
5503481
Fix a small markdown bug
Olgabrezel Mar 26, 2021
4408583
Revert April Fools, close #569 :P
Olgabrezel Apr 2, 2021
4113764
Added "Start Me" message to /config (#575)
mojtabaasg Apr 28, 2021
b06911d
Bump System.Net.Http in /Werewolf for Telegram/Werewolf Node (#570)
dependabot[bot] Apr 28, 2021
d322106
Bump System.Net.Http in /Werewolf for Telegram/Werewolf Control (#571)
dependabot[bot] Apr 28, 2021
2def296
Bump System.Net.Http in /Werewolf for Telegram/BuildAutomation (#572)
dependabot[bot] Apr 28, 2021
27a4cb6
Bump System.Net.Http in /Werewolf for Telegram/Telegram.Bot (#573)
dependabot[bot] Apr 28, 2021
6c24c96
Bump System.Net.Http in /Werewolf for Telegram/ClearUpdates (#574)
dependabot[bot] Apr 28, 2021
2e342c1
Seriously?
Olgabrezel Apr 28, 2021
812ca09
Syncing langfiles from Telegram (English.xml update)
jeffffc Sep 23, 2021
bad4403
Syncing langfiles from Telegram (English.xml update)
jeffffc Sep 23, 2021
bcb7b6a
Rework some stuff so the bot can run in the future
Olgabrezel Dec 1, 2021
39c39a3
Updates for long IDs
parabola949 Dec 2, 2021
b094388
Merge pull request #585 from GreyWolfDev/rework-long-telegramids
parabola949 Dec 2, 2021
621d336
Minor fixes
parabola949 Dec 2, 2021
123dc28
Fixes for http 4.2.0.0 being a pain
parabola949 Dec 2, 2021
fc7e4fc
minor fixes because people change method signatures in their librarie…
parabola949 Dec 2, 2021
31b5b5a
fix a few int.Parse methods on callbacks
parabola949 Dec 2, 2021
0eb556e
Fix long polling
parabola949 Dec 2, 2021
2208337
Fix build automation
parabola949 Dec 2, 2021
406c3fa
Merge pull request #586 from GreyWolfDev/rework-long-telegramids
parabola949 Dec 2, 2021
72dc47e
Merge pull request #587 from GreyWolfDev/master
parabola949 Dec 2, 2021
54b48a4
Bump versioning, fix build?
parabola949 Dec 2, 2021
84a560b
Merge pull request #588 from GreyWolfDev/rework-long-telegramids
parabola949 Dec 2, 2021
2724332
Because Azure doesn't want to use latest C# version....
parabola949 Dec 2, 2021
cddeabb
Merge pull request #589 from GreyWolfDev/rework-long-telegramids
parabola949 Dec 2, 2021
1f1e29b
Don't build projects that aren't needed in beta
parabola949 Dec 2, 2021
e9d0c55
Merge pull request #590 from GreyWolfDev/rework-long-telegramids
parabola949 Dec 2, 2021
a5144c9
fixed stats
parabola949 Dec 2, 2021
1f322f1
Merge branch 'beta' of https://github.com/GreyWolfDev/Werewolf into beta
parabola949 Dec 2, 2021
c742ed5
*sigh* more updates for stats
parabola949 Dec 2, 2021
3f36331
Merge pull request #591 from GreyWolfDev/beta
parabola949 Dec 2, 2021
73a635a
I hate this.
parabola949 Dec 2, 2021
4c9ba10
Merge pull request #592 from GreyWolfDev/beta
parabola949 Dec 2, 2021
fcd51e4
Fix main - no caption on start
parabola949 Dec 2, 2021
e04af36
Fix SendGif method
parabola949 Dec 2, 2021
a4bc6a0
Bug fixes
parabola949 Dec 4, 2021
cb4be49
Fix NotifyGame...
parabola949 Dec 4, 2021
83952f5
Why does it do this to me....
parabola949 Dec 4, 2021
6758615
Merge pull request #593 from GreyWolfDev/beta
parabola949 Dec 4, 2021
f133011
disable status command
parabola949 Dec 4, 2021
b2d4750
get rid of some pesky console output
parabola949 Dec 4, 2021
88c183d
Merge pull request #594 from GreyWolfDev/beta
parabola949 Dec 4, 2021
d358f4d
fix ohaider
parabola949 Dec 4, 2021
341a4e7
oops
parabola949 Dec 4, 2021
0a5ac15
Fix stats for long ids
parabola949 Dec 4, 2021
95f9c39
Merge pull request #595 from GreyWolfDev/beta
parabola949 Dec 4, 2021
9e0922f
Update message monitoring
parabola949 Dec 4, 2021
ea33207
Update monitoring for messages sent
parabola949 Dec 4, 2021
9e75ec0
Apparently the build server doesn't like default literals
parabola949 Dec 4, 2021
b80edde
Merge pull request #596 from GreyWolfDev/beta
parabola949 Dec 4, 2021
2290c1f
*sigh* forgot about casing
parabola949 Dec 4, 2021
c4553c9
Merge pull request #597 from GreyWolfDev/beta
parabola949 Dec 4, 2021
29915b5
forgot about edits...
parabola949 Dec 4, 2021
77642e6
Merge pull request #598 from GreyWolfDev/beta
parabola949 Dec 4, 2021
c2ff942
Fix a super old bug!
parabola949 Dec 4, 2021
49b2e04
Fix ping command to reflect changes of old bug
parabola949 Dec 4, 2021
e3c6c71
Merge pull request #599 from GreyWolfDev/beta
parabola949 Dec 4, 2021
0dc8014
Enable logging for fixgifs, fix an issue with 64 bit IDs in fixgifs, …
Olgabrezel Dec 17, 2021
a2c093c
Merge branch 'master' into beta
Olgabrezel Dec 17, 2021
a16a74f
Fix downloading GIFs
Olgabrezel Jan 6, 2022
e520928
update telegram.bot package to cater bigint
jeffffc Jan 10, 2022
b2191e1
update bigint
jeffffc Jan 10, 2022
514258f
Save beta unlock status so it doesn't get lost when restarting control
Olgabrezel Mar 1, 2022
d9cb562
Add logging to getUpdates
parabola949 Mar 4, 2022
2c18c37
Merge pull request #611 from GreyWolfDev/beta
parabola949 Mar 4, 2022
a1bf136
Filter some junk out
parabola949 Mar 4, 2022
3f15341
move filtering
parabola949 Mar 4, 2022
5814b39
Merge pull request #612 from GreyWolfDev/beta
parabola949 Mar 4, 2022
2ce2d1a
Remove message logging
parabola949 Mar 4, 2022
8e0b9bf
Merge pull request #613 from GreyWolfDev/beta
parabola949 Mar 4, 2022
4224efa
filter some more junk....
parabola949 Mar 4, 2022
cae6de6
Merge pull request #614 from GreyWolfDev/beta
parabola949 Mar 4, 2022
7821de9
Even more filters...
parabola949 Mar 4, 2022
d03008e
Move threading
parabola949 Mar 4, 2022
63dcfab
and limit updates received, why not
parabola949 Mar 4, 2022
b939f26
Merge pull request #616 from GreyWolfDev/beta
parabola949 Mar 4, 2022
66d6a19
Forgot to apply limit in actual request
parabola949 Mar 4, 2022
24b7479
fix empty messages causing out of bounds
parabola949 Mar 4, 2022
2cc6b5c
well that didn't work at all. I'm remembering now how much I just *L…
parabola949 Mar 4, 2022
663f4af
omg I'm stupid sometimes
parabola949 Mar 4, 2022
9de33da
log request times
parabola949 Mar 4, 2022
0a69602
Put limit back to 100
parabola949 Mar 4, 2022
bdb02a5
oops, fix out of bounds again for empty updates, caused by a timeout
parabola949 Mar 4, 2022
3b7b46c
"Syncing
jeffffc Mar 13, 2022
da311a1
Syncing langfiles from Telegram (English.xml update)
jeffffc Mar 13, 2022
4de5246
Syncing langfiles from Telegram (English.xml update)
jeffffc Mar 13, 2022
222c417
xsolla bigint
jeffffc Mar 15, 2022
5338379
exclude secrets as deployment file
jeffffc Mar 15, 2022
707118b
exclude secrets
jeffffc Mar 15, 2022
616ad43
Merge branch 'master' into beta
Olgabrezel Mar 15, 2022
2aa727f
Don't blindly ignore forwarded and replied messages anymore
Olgabrezel Mar 15, 2022
17c3077
Don't discard updates with documents or captions in PM (for setting c…
Olgabrezel Mar 15, 2022
15bdbd1
remove old update.exe as static file from control
jeffffc Mar 15, 2022
2477be0
build latest update.exe during control
jeffffc Mar 15, 2022
7164126
Fix: Handle new telegram invite link format for setlink (#615)
Mar 23, 2022
f3fc1f7
Avoid flood-banning the GroupAnonymousBot, close #551
Olgabrezel Mar 23, 2022
bc7e109
Don't ignore gifs sent via inline bot in PM
Olgabrezel Mar 24, 2022
7ed4a51
Fix smite by ID with 64 bit IDs
Olgabrezel Mar 24, 2022
7e54ba7
Fixed arsonist freeze bug.
ItsAmirK Mar 27, 2022
52d32a5
Adjustments to game balancing
Olgabrezel Jun 12, 2022
6bf2dc1
Merge pull request #617 from ItsAmirK/beta
Olgabrezel Jun 16, 2022
2ea87ac
Update a couple nuget packages, including Telegram.Bot
Olgabrezel Jul 4, 2022
a1f4111
Update control&node to Telegram.Bot v19
Olgabrezel Dec 25, 2022
1864d59
Two dirty hacks due to poor api design choices by telegram
Olgabrezel Dec 25, 2022
f7f8189
Update BotWatcher and Updater to .net framework 4.8
Olgabrezel Mar 31, 2023
2955848
Explicitly name parameter names for telegram bot api calls to reduce …
Olgabrezel Mar 31, 2023
8b820d4
Improve error handling for unhandled exception
Olgabrezel Aug 27, 2023
b447721
Include Newtonsoft.Json in files to copy on update
Olgabrezel Aug 27, 2023
7c28129
Make more commands work with 64 bit IDs, fix adddonation notifications
Olgabrezel Feb 4, 2024
b590b75
Test fixing precheckout
parabola949 Feb 12, 2024
b71110c
Test fixing precheckout
parabola949 Feb 12, 2024
0b81ff4
Not sure how that even happened. I blame chrome.
parabola949 Feb 12, 2024
ecbda9c
Merge branch 'master' into beta
Olgabrezel Mar 10, 2024
849fb1c
Fix receiving PreCheckoutQueries for donations
Olgabrezel Mar 10, 2024
652834f
Fix: Validate player's selections properly.
Olgabrezel Mar 10, 2024
11d5260
When both lovers are burning by arsonist, don't kill one of them by l…
Olgabrezel Mar 10, 2024
7c41160
Disable xsolla donations for the time being
Olgabrezel Mar 10, 2024
a0799a6
Improve arsonist freezing mechanic
Olgabrezel Mar 10, 2024
ccc6295
Syncing langfiles from Telegram (English.xml update)
jeffffc Mar 10, 2024
b984eca
Fix setting custom GIFs
Olgabrezel Mar 12, 2024
01efe54
Disable donations
Olgabrezel Jun 8, 2024
e3d61d2
Remove unnecessary info for transformed BH, already contained in Role…
Olgabrezel Sep 8, 2024
4e9d3cd
Add renyhp's second account as dev
renyhp Feb 4, 2025
85d64b7
/nextgamewithpara
Olgabrezel Feb 7, 2025
54282cb
Revert "/nextgamewithpara"
Olgabrezel Feb 10, 2025
194b50e
Fix missing notifications for Guardian Angel edge cases
Olgabrezel Feb 12, 2025
eb86fbd
More sensible handling of the WasSavedLastNight flag
Olgabrezel Feb 12, 2025
8b3e321
New achievements for ww anniversary
Olgabrezel Mar 14, 2025
b555254
Allow anonymous admins to use /smite, /getidles
alyral Mar 26, 2025
efb903b
Change inverted condition for /about commands
alyral Mar 29, 2025
9f30cd5
Allow more commands for anonymous admins
Olgabrezel Mar 31, 2025
ee6594f
Stop anonymous admins from joining games
Olgabrezel Mar 31, 2025
37ec2cc
Wolf that dies on first eat must not eat again, closes #480
Olgabrezel Apr 13, 2025
71c043f
donations re-enable reparation
jeffffc Aug 8, 2025
191de4f
fix previous commit
jeffffc Aug 8, 2025
f1c85c0
debugging new donation
jeffffc Aug 8, 2025
8dd6274
try to fix
jeffffc Aug 8, 2025
3236d46
Fix support for new group links (with + instead of joinchat)
Olgabrezel Oct 3, 2025
55f9477
Add MAU badge for Werewolf Telegram bot
KivApple Feb 6, 2026
0b285f1
Merge pull request #670 from KivApple/readme-mau
Olgabrezel Feb 18, 2026
dcc6308
Role re-release for 10th anniversary
Olgabrezel Mar 10, 2026
ca547cc
Revert "Role re-release for 10th anniversary"
Olgabrezel Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,6 @@ ModelManifest.xml
*.crt
/Werewolf for Telegram/Werewolf Control/Languages
/Werewolf for Telegram/Werewolf Node/Languages
*.pubxml

Update.exe
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Werewolf for Telegram

[![@werewolfbot MAU](https://tgbotmau.quoi.dev/api/bot/werewolfbot/mau/badge?style=flat "@werewolfbot MAU")](https://tgbotmau.quoi.dev/?bot=werewolfbot)

This is the main repo for Werewolf for Telegram.

For language file updates, please submit the xml file on Telegram to the [support chat](http://telegram.me/werewolfsupport) and ask for assistance
Expand All @@ -20,40 +22,40 @@ To set up werewolf on a private server, follow these steps:
* On your server, open regedit, and go to `HKLM\SOFTWARE\`, create a new Key named `Werewolf` (HKLM - HKEY_LOCAL_MACHINE)
* In the new key create a new string value named `ProductionAPI`.
* Paste your API token here.
2. Grab the Werewolf Database.sql file from this repository
2. Grab the werewolf.sql file from this repository
* Open the file in notepad, notepad++, whatever you use
* Double check the path at the top of the file - update it if you are using a different SQL version
* Run the sql script. This will create the `werewolf` database and all the tables / views / stored procs to go with it
* If you already have some admins (including yourself), add their TelegramID's to the `dbo.Admin` table
* In order to obtain your ID, headover to your bot in telegram and /Start. After that, toss a random text to it. Enter this URL to your browser (https://api.telegram.org/botYOURTELEGRAMBOTAPIKEY/getUpdates)
3. Now it's time to compile the source code
* In the Database project, you will need to create an Internal.settings file
* In order to create the Internal.settings file, right click on Database -> Add -> New Item
* Under Visual C# Items -> Settings File and name it as stated.
* Create a string setting named `DBConnectionString`, Application Scope, and set the Value to your SQL connection string for the database you created in step 2
* Connection String should be this (change the values) `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"`
* If you are using Windows Authentication for your MSSQL Server, do take note that the password property will NO Longer be required. You're required to replace it with "Trusted_Connection=True;" instead.
* On your server, open regedit
* In the `Werewolf` key create a new string value named `BotConnectionString`.
* Paste the Connection String here.
* Connection String should be this (change the values) `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"`
* If you are using Windows Authentication for your MSSQL Server, do take note that the password property will NO Longer be required. You're required to replace it(both user id and password) with "Trusted_Connection=True;" instead.
* .gitignore has marked this file, so it won't be committed. **However, when you create the setting, VS will copy it to the app.config - make sure to remove it if you plan on committing back to your fork**
* In Visual Studio, open the solution. Make sure you are set to `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.
* Create another new string value named BotanReleaseAPI. You can leave this blank if you don't want to track your usage using BotanIO.
* If you plan on running another instance of the bot as beta, add another two new string values named BotanBetaAPI and BetaAPI. Again, you can leave BotanBetaAPI empty if you want. Set BetaAPI to the token of your beta bot.
* In Visual Studio, open the solution. Make sure you are set to `RELEASE` build. You may want to go into `Werewolf_Control.Helpers.UpdateHelper.cs` and add your id to `internal static int[] Devs = { ... }`. Also, double check the `Settings.cs` files in both `Werewolf Control/Helpers` and `Werewolf Node/Helpers`.
* Build the solution
4. Server directories
* Pick any directory for your root directory

| 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|
|`root\Instance Name\Control`|Control build|
|`root\Instance Name\Node 1`|Node build|
|`root\Instance Name\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\Instance Name\Logs`|Logging directory|
|`root\Languages`|Language xml files - These files are shared by all instances of Werewolf|

* Note - Once all nodes are running the newest version (Node 2 directory), the next time you update nodes, you can put the new files in Node 1 and `/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 it**
5. Fire up the bot!


6. If you try to start a game now, you will notice that the bot will just respond with an error. That is because you didn't update the gif ids yet. See the section below for instructions on how to do this.


## GIF SUPPORT
In 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.
You can test these by running `/dumpgifs` (preferrably in Private Message!). Make sure you check out DevCommands.cs, and look at the `DumpGifs()` method - most of it is commented out. Uncomment what you need.
4 changes: 2 additions & 2 deletions Werewolf for Telegram/Achievements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Masochist : Be lynched as the Tanner
Wobble Wobble : Survive a game as the Drunk
Inconspicuous : Make it through a game without a single lynch vote against you (20+ players)
Survivalist : Survive 100 games
Black Sheep : Get lynched first 3 times in a row
Promiscuous : Finish the game alive as a harlot without repeating visits or staying at home (5+ nights)
Black Sheep : Get lynched first 3 times in a row.
Promiscuous : Finish the game alive as a harlot without repeating visits or staying at home (5+ nights)
6 changes: 3 additions & 3 deletions Werewolf for Telegram/Bot Watcher/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
</configuration>
3 changes: 2 additions & 1 deletion Werewolf for Telegram/Bot Watcher/Bot Watcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Bot_Watcher</RootNamespace>
<AssemblyName>Bot Watcher</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
Loading