lichess4545 / chesster Goto Github PK
View Code? Open in Web Editor NEWChesster Moderator Bot for Lichess45+45
Chesster Moderator Bot for Lichess45+45
@lakinwecker - per our convo on slack
it seems like new players - at least spacemodulator wasn't updated by chesster until there was a rating request - see attached image
its not used or useful when you compare to what git offers. get rid of it.
remove isPotentialSchedule
from chesster.js because this local is not necessary. We can simply return from inside the catch clause
It's not overly difficult to keep an eye on the spreadsheet. But, since almost everything at this point can be managed from slack, it'd be nice to have an easy way for captains to keep track of if their team has scheduled or not.
Maybe even a ping on Wednesday if a teammate hasn't scheduled yet.
Thanks for what you're doing!
it can go back in when its a real possibility... follow up item: implement a challenge command...
lonewolf 45+45 this is a long sentence, maybe it requires a long sentence, and some numbers 24 2
all of pairing
and pairing lakinwecker
and pairing r-mena
fail.
pairing @r-mena
and pairing @lakinwecker
are working
Currently returns https://githaub.com/endrawes0/Chesster, should return https://github.com/endrawes0/Chesster. I was going to submit a PR for this, but it doesn't look like the config is in the repository.
We are still using callbacks in a few places, notably in the spreadsheets.js - we should use promises as that means our exceptions will be caught and logged for us.
Currently, trying to schedule an unknown pairing will take him down.
/home/endrawes0/Chesster/chesster.js:1602
if( details.winner && result.result == "1/2-1/2" ){
^
TypeError: Cannot read property 'winner' of undefined
at validate_user_result (/home/endrawes0/Chesster/chesster.js:1602:16)
at /home/endrawes0/Chesster/chesster.js:1637:28
at IncomingMessage. (/home/endrawes0/Chesster/chesster.js:1533:17)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
/
~/Chesster /
8:51 PM]
kirschwasser @cheesehead04 v @Kirschwasser 0-1
[8:52 PM]
lakinwecker hrmm
[8:53 PM]
@cheesehead04 0-1 @Kirschwasser
[8:53 PM]
chessterBOT Sorry, you do not have permissin to update that pairing.
[8:53 PM]
lakinwecker Try that format
[8:53 PM]
not sure why yours didn't work
[8:54 PM]
kirschwasser @cheesehead04 0-1 @Kirschwasser
[8:54 PM]
not working
[8:54 PM]
lakinwecker huh
[8:54 PM]
That is really odd
[8:55 PM]
@Kirschwasser: can you try it again?
[8:55 PM]
kirschwasser @cheesehead04 0-1 @Kirschwasser
[8:55 PM]
lakinwecker There is a bug
[8:55 PM]
it's trying to read your game link and failing, for some reason
[8:55 PM]
I'll file a bug and ensure a mod updates it for you
i'm not sure how hard this would be, but assuming we have everyone's email this might be a very nice feature - i thank cal invites could even be used by people that don't have a gmail address - but i'm not sure about that
one risk might be exposing league member's emails, maybe there's a way around that...
to build on this, if chesster had a public calendar he could be included on the invites - then we'd have an easily viewable calendar of games.
just spit-ballin ideas - i missed my round 8 game because i messed up my own calendar entry...
This command should store your preferences in a local data storage and ensure that whenever a gamelink is posted for the player you have posted, chesster will tell you that they are playing
I am UTC-6, but I got this notification today:
forhavu vs r-mena has been scheduled for 2016-07-06 @ 11:00 UTC, which is Wed @ 13:00 for you.
Which is (for some reason) converting it it to UTC+2 !? I have tested locally and it's converting properly for me when testing locally. Note that the notification I got for my own game was also incorrect.
mooserohde vs lakinwecker has been scheduled for 2016-07-10 @ 20:00 UTC, which is Sun @ 22:00 for you.
During testing, I saw the round appeared to be over after midnight. Need to review the cause.
Create a message for the case when no subscriptions are found.
probably format(...)
is nicer mechanism
Pick one and fix it.
We should be consistent going forward.
When updating ratings from lichess, we should probably have chesster also check to see if a particular user is marked as an engine users and inform the mods. I realize that engine use in casual and correspondence games might be allowed, but it's probably worth it for the league.
E.g. @chesster captains
Et Cetera...
It should start a DM and it should tell you both of your pairings, their rating, your scheduled times and/or results and perhaps a "countdown" till your game time:
example:
Lonewolf: you play endrawes0 (1687) on Sunday at 17:00 which is in 2day, and 3 hours.
Team: You played jaivl (1987) on Saturday at 08:00 and lost.
Allow mods to update anything
`@chesster subscribe @endrawes game-start``
@chesster unsubscribe @endrawes0 game-start
events.publish('game-start', target='endrawes0')
`````` 'game-scheduled'```
'game-forfeited'
Needs a spaced after mods:
and before @endrawes0
For some reason it thought it was too late?
README is lacking some detail now that we have reorganized the code base and refactored.
would avoid people repeating the same request over and over when they realize it is a rate limit issue.
Do it after the gamelink parsing is finished.
for
botExceptionHandler
exceptionHandler
and criticalPath
When the position is stalemate and someone attempts to post the result, chesster thinks the game is ongoing.
Example: @jagvillspelaschack: vs @mooserohde 0-1
It hasn't picked up my schedule for round 2 of lonewolf
looking at this now and realizing we need some organization...
Tell them to ask a moderator.
pairing currently gives "theino will play Pasternak(2019). The game is unscheduled."
Color should be added. Ex: "theino will play white against Pasternak(2019). The game is unscheduled."
go through all the logging and verify errors go to stderr
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.