Coder Social home page Coder Social logo

greywolfdev / werewolf Goto Github PK

View Code? Open in Web Editor NEW
618.0 68.0 385.0 27.03 MB

Werewolf for Telegram

Home Page: http://www.tgwerewolf.com

License: GNU General Public License v3.0

C# 18.19% Batchfile 0.01% CSS 18.46% HTML 17.04% JavaScript 45.12% PHP 0.26% TSQL 0.67% ASP.NET 0.01% Less 0.23% SCSS 0.02%
hacktoberfest bot telegram werewolf

werewolf's People

Contributors

bart1909 avatar clonemmddcvii avatar cordarionthegrey avatar dependabot[bot] avatar dllz avatar donavancheah avatar dunk3236 avatar eagle3000 avatar flowiee avatar gloomy-ghost avatar itsamirk avatar jaimefd avatar jeffffc avatar jehangirvak avatar jhendcquiles avatar joeljwilliams avatar joshkurien avatar kuvam avatar leonsama-moa avatar mehdi-wolf avatar mojtabaasg avatar olfi01 avatar olgabrezelprivate avatar parabola949 avatar qokab avatar renyhp avatar riskey95 avatar sil3ntstorm avatar silassit avatar simvalue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

werewolf's Issues

Bot chose lovers for cupid, but they didn't receive a message

On the group -1001052795980 (Combriccola WereWolfBot), August 13th at 20:34 GMT+2, bot 2 chose the lovers in place of the cupid, who didn't choose in time. The lovers chosen were the Seer and the Serial Killer, but neither received a message from the bot telling them they were lovers. The Seer had chosen the Serial Killer to see on the first night, and once day come (still with no message), they told the group, and got the Serial Killer lynched... Only then did he find out he was actually his lover.

Screenshot from the Seer
image

Game's status in the end
Werewolf Moderator 2, [13.08.16 15:38]
Giocatori in vita: 5\8
Tris: 💀 Morto - l'Artigliere🔫 Vinto
Fede Alfonso: 💀 Morto - il Serial Killer🔪❤️ Vinto
Aurelio Colombo: 💀 Morto - il Veggente👳 ❤️ Vinto
Alicetta¤: 🙂 In vita - il Veggente👳 Vinto
Sergio: 🙂 In vita - Il Cacciatore urbano🎯 Vinto
Tomodachi: 🙂 In vita - Cupido🏹 Vinto
Diego: 🙂 In vita - l'Investigatore🔎 Vinto
Leo145: 🙂 In vita - il Maledetto😾 Vinto

Durata della partita: 00:05:14

[Feature request] Extend joining time command

Adding a command like /extend <seconds> to extend time to join the game could be useful for small groups in which not always there are enough players online, also because by /flee /join the joining time left could increase to 1 minute at most.

Hunter killed at day time by SK displays wrong string

When the hunter is killed at day time, the bot will always display the "HunterShotChoice" string even though it could also have been the SK.
There are two possible fixes: Introduce another string for hunter being killed by SK or change the exisiting string to cover kills by SK as well

Lynch voting should be secret (optionally)

We think that it woud be nice to have opportunity to set the lynch voting to be secret.
This could avoid "tactical voting", e.g. forcing draws etc.
(Should be optional though, because one could like this way of tactical voting)

[Suggestion] Night Events

Hey, was thinking about something to add some new dynamics to the game.

Night Events

Every X nights there is a night event. These events occur randomly and they can give advantage and disadvantages to any team/person. I guess about every 4 or 5 nights is a good number, and they would only work on games with 10+ players. Here are some suggestions on possible events:

Full Moon - Werewolves get to kill 2 people this night, cuz, Full Moon is they're moon bro.

New Moon - Werewolves get no kill this night, cuz is to dark? Maybe they are afraid of dark.

Blue Moon - Seer gets to see 2 people this night, cuz this is a magical night. Or, the Fool and/or the aprendice could see someone?

Red Moon - The Serial Killer kills twice, and the harlot visits to people in this sinfull night.

Eclipse - A Holy, or Unholy night, who knows? Cult can convers two people, and cultist hunter can visit two people too!

Snowstorm - Only wolves can act this night, cuz they're furry and can resist such cold!

Rainy Night - Only non-wolves can act this night! Cuz no one wants to wet a fur coat

Thunderstorm - Random person gets struck by lightining, and dies

Sandstorm - Every one powers will chose targets randomly, cuz no one can see clearly on the sandstorm.

Flood - No actions for anyone this night.

Ex-admin with config menu open is still able to change configs

If an user is admin of a group, and wwbot recognizes them as such, the user can open config menu, and isn't ever required to close it. If such user loses admin privileges (either by being kicked from group, exiting the group on their own or being removed as administrator by another admin), the bot won't recognize them as an admin anymore... But if the ex-admin still has the config menu open, they can keep making all sorts of changes in it until they close the menu (wwbot won't let them open a new menu, just won't close it when they stop being admin)

Basically wwbot will accept any change made from an open config menu even if it doesn't come from a current admin.

Problem notifying roles

Werewolf Moderator:
3.0.6071.17521
Group: -172203677 (Werewolf Gamaliel)
Language: Bahasa Indo
Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Count[TSource](IEnumerable1 source, Func2 predicate)
at Werewolf_Node.Werewolf.GetRoleInfo(IRole role) in C:\Users\jus00091\Source\Repos\Werewolf\Werewolf for Telegram\Werewolf Node\Werewolf.cs:line 1163
at Werewolf_Node.Werewolf.NotifyRoles() in C:\Users\jus00091\Source\Repos\Werewolf\Werewolf for Telegram\Werewolf Node\Werewolf.cs:line 1086
at Werewolf_Node.Werewolf.GameTimer() in C:\Users\jus00091\Source\Repos\Werewolf\Werewolf for Telegram\Werewolf Node\Werewolf.cs:line 266

Cultist dies twice when lynched + visited by CH the following night

During a game, a cultist was voted to be lynched. The CH voted on her, the bot accepted her choice, and the cultist was successfully lynched. Following that, when night came, an inline keyboard appeared for the CH, but she couldn't make any choices. Once night ended, the inline keyboard didn't disappear, but the bot answered CH saying she went to the (dead!) cultist's house and killed her. Following that, it sent a message in the group saying the (already dead!) cultist had been killed by the CH.

Group ID: -1001066860506
Bot's messages:
CH voting to lynch cultist:

Werewolf Moderator, [05.07.16 04:23]
Pratya has voted to lynch 천사 Angel

Belladonna has voted to lynch 천사 Angel

Käzúyä 戀柯 has voted to lynch 천사 Angel

Daredevil has voted to lynch Ghoul 👻

Bot accepting CH's choice:

Pratya, [05.07.16 04:53]
[Forwarded from Werewolf Moderator]
Choice accepted - 천사 Angel

Cultist being lynched:

Werewolf Moderator, [05.07.16 04:23]
The villagers have cast their votes, amid doubts and suspicions. 천사 Angel is dead. 천사 Angel was a Cultist 👤

Night has fallen. Everyone heads to bed, weary after another stressful day. Night players: you have 90 seconds use your actions!

Bot telling CH she visited cultist's house:

Pratya, [05.07.16 04:51]
[Forwarded from Werewolf Moderator]
Did something happen at 천사 Angel's house last night? You can't seem to remember...

Bot telling the group cultist died, again:

Werewolf Moderator, [05.07.16 04:24]
As everyone rises, they find the body of Ghoul 👻 shoved into a pile of stone, blood splattered everywhere. One of your masons has died!

A noticeable stench is coming from 천사 Angel's house... the village inspects it to find a body lying in front of a dark altar... a cultist has been killed by the hunter!

It is now day time. All of you have 120 seconds to make your accusations / defenses / talk.

Day 3

Screenshot of bot's PM with CH:
image
image

Help

How to start a werewolf game in a private group? I want to play private games with my friends.. Pls help

[Request] about GIF in game.

It'd be nice if we can disable GIF and/or change it to other set of GIF when playing other settings like Mafia.

LoverDied string displayed before the other one is dead

If one of the lovers dies, the suicide of the other one is displayed first before the kill is being displayed.

how its displayed at the moment:
LoverDied
DefaultKilled/DefaultEaten/DefaultShot/...
DayTime/LynchTime/...

GA's lover still alive when GA successfully protected their lover but GA killed

found 2 cases already but reporting one specific

chatid -1001057427061 (@WhateverWolf)
start at 15:49:04 UTC

So in games which has GA coupled with someone,

If GA killed by SK but the lover is protected by GA from ww, the bot give message that both lovers dead but only registered GA dead and the other lover still alive

The GA lover still can vote, do action, and counted alive towards winning ratio with ww.

Cult vs SK = Cult Wins?

I've encountered this issue in two games so far. When one cult and SK are left in the end of the game, why is it considered as cult's win? Shouldn't it be a win for SK? Thanks :D

End Game List Suggestion

I think it is better to display the end game list as below:

Suggestion 1
Won:
(Cupid Icon) Peter: (Alive Icon) Alive (Lover Heart Icon)
(Mason Icon) John: (Alive Icon) Alive (Lover Heart Icon)
(Villager Icon) John: (Dead Icon) Dead
(Detective Icon) Peter: (Dead Icon) Dead
Lost:
(Wolf Icon) Mary: (Dead Icon) Dead
(Wolf Icon) Sally: (Dead Icon) Dead
(Tanner Icon) Taylor: (Dead Icon) Dead

Suggestion 2
Icon Change
Lover 💘
Alive ❤
Seer 🔮
Cultist ⚰
Cult Hunter ⚜

Suggestion 3
Please include the ":" mark in the string "PlayersAlive", because I want to use full "︰" version for the Chinese version instead. Not a big deal tho.

New Role Suggestions: Wolf faction

All roles that win if wolves win.

Wolf Man: Seer sees them as a villager.
Minion: Knows who wolves are, but does not wake with them. Seer sees them as a villager.
Sorceress: Looks for the Seer at night.
Fruit Brute: If they are the only wolf, they do not kill at night.
Wolf Cub: If they die, the wolves get two kills the next night.

/ping command not displaying minutes

The result is "Reply process time: [few seconds]" even though it could be some minutes. Just adding +60 seconds for each minute would be already fine

bot only sends you a message when eaten

the bot lets you know when you are eaten by the wolves. it doesn't tell you when you die because you're killed by the SK, out of sorrow, because you visited the wrong house as a harlot, are shot, are lynched etc.
the bot should also send you a message when these events happen and you die

DG became SK after Lynch time but didn't kill

In group @werewolfita, chatid -1001052795980, at 10:41 of 13/07/2016 CEST (03.41 CDT), the Doppelganger became SK because SK got lynched; clicked on the name of the person to kill, the bot accepted their choice, but didn't kill anyone.
Not sure if it's only due to lag, but it doesn't seem so, because bot wasn't lagging at the time.

There should not be a time limit

There should be an option to play a more laidback version where the game will progress when everyone responds. But does not need everyone to be online for its entirety.

What Visual studio version to use ?

I try to build an private server or something like that, i already set-up the Windows Server & SQL server, but when i open the solution with Visual Studio 2015 update 3 , it failed to load the solution/file ,

New Role Suggestions: Villager, passive

Medium: (For no role-reveal games only) Each night, learn the role of the most recently-lynched player.
Tough Guy: If attacked by wolves, does not die until the next night.
Lycan: Seer sees them as a wolf.

7/7 & 8/7 added strings to be translate

Below messages should be translatable as well:

First problem is that, the translation of recently added message is not working.

Second, there two more strings needed to be translated:
1.
"/AboutVG - Villager
/AboutSeer - Seer
/AboutWw - Werewolf..."

the {0} in strings: AllowFleeQ and AllowFleeA

DG has useless "Skip" button

It is useless since, if they press it, the bot chooses randomly anyway.

Possible fixes:

  • Just delete it
  • Make possible for DG to skip choice (although that's somehow against the "bot chooses randomly" logic)

New Role Suggestions: Villager, special action

Priest: One night per game, choose a player. The next time that player would be eliminated at night, they survive.
Aura Seer: Choose a player each night. Get a Yes or No answer to whether that player is anything besides an ordinary villager or a werewolf.
Troublemaker: One day per game, call for two lynchings.

New Role Suggestions: New factions

Hoodlum: Choose 2 other players the first night. Only wins if he survives and those two players are eliminated.
Vampire: Choose a player each night. If that player gets two lynch votes the next day, that player dies.
Lone wolf: Wakes with other wolves, but only wins if they are the last player in the game.

Cannot Play Game (BUG)

The game has indeed started , but when we type "/flee" or "/players" or any instructions , the bot eventually says "no game is currently running , type /start game or /startchaos to begin the game"

"All the wolves have died" endgame message when SK loses and no WW is in-game

Endgame message erroneously states that Werewolves have won when the SK wins.

It should be noted that I found this while playing Chaos mode where there were zero werewolves and one SK.

EDIT:
Made a mistake, the issue here is "The villagers have won! All the wolves have died..." appears when SK dies and there's no WW.

bug while player can play 2 game at same time

Group A, B
—----------------

  1. Start game in group A
  2. flee in group A (game session still there)
  3. Start game in group B
  4. Now you can join A again
    Then you will be playing in 2 game.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.