xbony2 / esaebsad3 Goto Github PK
View Code? Open in Web Editor NEWA Discord bot written in Ruby for manipulation of the FTB Wiki.
License: MIT License
A Discord bot written in Ruby for manipulation of the FTB Wiki.
License: MIT License
(With associated commands.)
I want actions to be stored in an actual database rather than just locally, but that will take some work with AWS, of course.
It would be far more idiomatic and would be cross-platform.
Seems ESAEBSAD loses its authentication after a while or something:
2022-06-07T12:54:35.751626+00:00 app[worker.1]: [ERROR : ct-10 @ 2022-06-07 12:54:35.751] Exception: #<MediaWiki::Butt::NotBotError: You do not have the "bot" right, so the action could not be completed.>
I'm not sure, but I have a strong suspicion that a !fix_double_redirects
command I tried failed because of Heroku's (not entirely undeserved) security obsession:
Heroku rotates credentials periodically and updates applications where this database is attached.
When deployed, the env var DATABASE_URL
specifies where ESAEBSAD3 connects to. Currently, we only do the connection once, when everything is initialized. If this env var changes (which I suspect is the case here), then this means ESAEBSAD would fail to connect to the DB, since it would be relying on the outdated url. I'm not completely sure though, and will need to test this.
Solution is pretty easy but requires some refactoring: use a method to get an instance of the DB each time instead of accessing it directly, and have it check if the env var changed. This will result in a lot of redundant changes of course, but performance-wise checking local env vars is peanuts compared to querying a database.
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.