nickrw / twgbot Goto Github PK
View Code? Open in Web Editor NEWA ruby 'werewolf' game bot (powered by Cinch)
License: MIT License
A ruby 'werewolf' game bot (powered by Cinch)
License: MIT License
Add possibility to add a reason to a vote by wolves, just for lulz
!vote
Please make the name of the wolf in bold like in other places to make it easier to find who it was
Current output
@twgbot With a sickening gutteral noise due to centuries of inbreeding, slobber begins dripping from verin's mouth. The remaining mendeleyans don't stand a chance.
@twgbot Game over! The lone ugly dog verin wins!
Proposed output
@twgbot With a sickening gutteral noise due to centuries of inbreeding, slobber begins dripping from verin's mouth. The remaining mendeleyans don't stand a chance.
@twgbot Game over! The lone ugly dog verin wins!
In nick_change see_target is not updated, so the target is invalid when reveal is called if a user changed nick and the seer would not get a message.
See
https://github.com/nickrw/TWGbot/blob/master/twg/game.rb#L64
https://github.com/nickrw/TWGbot/blob/master/twg/game.rb#L133
If you vote for a dead player (maybe also for invalid nicks) the bot doesn't react.
It should reply with an error to confirm it's not just lagging :|
Please add a message before the end of the day with time left to vote and nick highlight for people that haven't voted
"Xsec left, the mob gets angry at [nick1], [nick2] for not making up their minds"
"Xsec left Why hasn't [nick1] voted? probably a wolf."
"Xsec left before the night"
/var/lib/gems/2.1.0/gems/twg-2.0.0/lib/twg/helpers.rb:106:in `clean': uninitialized constant Cinch::Utilities::String (NameError)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.