roout / chatterfinity Goto Github PK
View Code? Open in Web Editor NEWTwitch bot based on WOW Blizzard and Twich APIs.
License: MIT License
Twitch bot based on WOW Blizzard and Twich APIs.
License: MIT License
Cache the data (realm id, realm status) acquired from the blizzard server.
Then chain functions used to request these data.
Print the arena rating by provided username from TBC WOW
A code fragment below will lead to problem: an internal outgoing buffer will be overwritten. To fix this issue buffer can't be touched before the whole message had been sent. Use special buffer.
IrcConnection * irc = ...;
irc->Write("Send some text");
irc->Write("Send some more text");
irc->Write("Send another one");
Blizzard service should save access token between sessions. It's not required to request a new token for each new session.
Prevent frequent requests for commands. Imagine, several !arena
commands being invoked! If the result hasn't been cached yet, a lot of arena http connections will be born with heavy incoming payloads (around 9 MB)...
Add connection state to prevent invoking Connection::Connect(...)
on the already connected one. It's especially needed for IrcConnection
which has Login
command
Must have 1s delay (more if it's slow mode) between messages to the same channel
Reference
Enable an application to handle transient failures when it tries to connect to a service or network resource, by transparently retrying a failed operation. This will improve the stability of the application.
Steps to reproduce:
! <anything>
!
and the next word.!realm-status
Result:
Console logs shows that the status was extracted successfully but response failed to appear in channel chat
Expected result:
Message in char with status of the flamefor server
In connection logs --error: SSL stream shutdown: stream truncated
may not be an error because now I'm not ready to handle keep-alive connections. So the stream is will be truncated when connection is closed.
Connection callback onWrite
will be ignored when more than one message is queued for writting; only callback for the last message from buffer will be called
They handle callback (onReadSuccess
) differently:
IrcConnection
continue to read and doesn't update callback if it's empty object (on repeated IrcConnection::Read()
call) whereas HttpConnection
always updates the callback (even if it's empty)
Closed is being called twice (two error messages about ssl underlying socket shutdown) for irc connection
Twitch Dev Forum about this issue.
Twitch IRC Capabilities
Encounter a problem here: #17
Create log files (Connection_[\d+].txt
) for only failed connections (save log to buffer and dump it to file only on error)
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.