gempir / gempbot Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://bot.gempir.com
License: MIT License
Home Page: https://bot.gempir.com
License: MIT License
Before custom commands for predictions, rewards can come out we should consume this API endpoint when saving a message template.
https://dev.twitch.tv/docs/api/reference#check-automod-status
Even tho I only have the Prediction permission, i'm still able to modify the rewards and remove/block emotes. The only thing I can't do is adding new people with permissions and change other peoples permission.
{"Permissions":{"agenttud":{"Editor":true,"Prediction":true},"ayyybubu":{"Editor":true,"Prediction":true},"fawcan":{"Editor":true,"Prediction":true},"gempir":{"Editor":true,"Prediction":true},"hotbear1110":{"Editor":false,"Prediction":true},"ollesan":{"Editor":true,"Prediction":true},"sotiris_ael":{"Editor":false,"Prediction":true},"tenminutedays":{"Editor":false,"Prediction":true},"unpleasantchatter":{"Editor":false,"Prediction":true}},"Protected":{"EditorFor":["nymn"],"CurrentUserID":"62300805"}}
You should be able to block an emote from the history. Which would result in a block + remove of the emote on the emote api.
Make it so rewards have to be approved via the redemption page on twitch by a mod so the reward actually comes through.
This might cost people points when there are issues with the redemption.
Use our own Oauth token for the bot instead of generating it manually
I have the 7TV emote redemption set to use 100 slots. But anytime someone redeems an emote, it replaces the last one redeemed.
how about banning the most downvoted emote from each day from future nominations?
It would be cool to see this bot in more languages that streamer can config
Maybe use a cron syntax for redemptions?
Allow users to specify a more in depth time than just every X hours.
When a new secret is generated, old access token become invalid.
There should be a fallback that when an app access token is invalid it tries to atleast generate a new one once.
The bot added the wrong emotes
https://bot-api.gempir.com/api/emotelog?channel=nymn
MILK and uhoh were added.
should have been dankHug, docLeave and pepeLaugh
Use the auth revoked eventsub to tell when we lose access to some subscriptions and maybe notify the users somehow?
An emote system where emotes get voted in over several days.
Maybe it could work like this:
3 Emotes per day should be added. Viewers get to suggest emotes and vote on suggestions on that day.
At the End of the Day the top 3 emotes will be added.
A new voting starts
Checklist:
A way to add the alias for the emote you redeemed. As well as a way for mods to moderate it if they don't like the alias name.
When you remove an emote from the list of recently added emotes the number of slots in the reward should be decreased because 1 slot will be used up by the emote that will be kept permanently
When the reward is set to Approve only if the redeem is rejected that emote gets added to the ban list :)
It could be just a button on the homepage that removes the emote from the list and prevents it from getting removed.
also I think added and removed emotes should be in different tables
dank drawing of how it might look like
I think there should also be an option to remove all emotes from the recently added list and the blocks list
I wanna try out LiteFS https://fly.io/docs/litefs/getting-started/
This would mean no more planetscale, also less issues with potentially running out of queries in a month and having to go to a very expensive pricing tier.
I think sqlite can totally handle the workload easily.
Once you have upvoted an emote for nominations, make new button appear to undo your vote.
This would be a good edition since it's 'easy' to accidentally upvote wrong emote.
time="2021-10-09T12:16:20Z" level=error msg="Failed to decode event: json: cannot unmarshal number into Go struct field EventSubTopPredictor.outcomes.top_predictors.channel_points_won of type string" file="predictions.go:136"
END RequestId: 50e68016-d06d-44a7-bcef-4c54f4e6ac09
A way to refund for duplicate nominated emotes and emotes that are already added to the channel.
Bot should post a message in chat when a mod rejects a request so users know that their request went through but didn't get approved
Add Nominations to Navigation like
https://bot.gempir.com/nominations/nymn
Maybe just directly on the Elections page
Get rid ofIRC and use eventsub completely
Potential features
StartRefreshTokenRoutine doesn't respect access tokens in DB, check that first
Support chat announcements instead of regular chat messages
Double Nomination from 2 different people should be counted as vote
Trizze would like an option to insta refund some people like t3 subs or maybe mods to incentivize subbing for Partner Plus
If someone tries to re-add an emote (or one with the same name) that was recently removed, it will say "emote code already added"
Same issue as Nerixyz/rewards#156, which means its probably a 7TV API issue, not sure if it's the endpoint for retrieving enabled emotes or if it's the endpoint for adding emotes.
If it's the former you might be able to get around it with a cache or by querying their Event API in some way.
As the title says, gempbot should have a second list on the website which displays recently added emotes through nominations. Extra information could be shown such as who added the emote and how many votes it got in total.
You could expand on this to display when this emote will be removed, if nominations has a separate emote rotation outside of the channel point redemptions system.
Would be cool to get an overlay that displays when a prediction starts/ends.
It doesn't sound like a difficult thing to make seeing that you can build a website & the bot can already announce it in chat.
See picture for example:
It doesn't have to be fancy or anything, just something to notify the Chatterino users better. ๐
There should be a way to delete the added/blocked emotes history so that we can reset and start over.
When a login token becomes invalid in the frontend it should be wiped from the client browser otherwise frontend thinks it works and will constantly get 401s from the API
Nominate Reward should be added directly when creating an election and when updating it.
Only should be enabled/disabled with start/stop election.
Bot has been failing to add 7TV emotes for a while now
โ ๏ธ Failed to add 7tv emote from @... response error for https://api.7tv.app/v2/gql: unexpected status: 403
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.