site: https://oat.zone/
most of the time i post code on https://git.oat.zone/oat/ - however i sometimes use https://gitdab.com/oatmealine and https://gitlab.com/oatmealine
a friendly swiss knife discord bot from celeste mountain built on cumsystem mostly focusing on fun or utility commands
License: MIT License
site: https://oat.zone/
most of the time i post code on https://git.oat.zone/oat/ - however i sometimes use https://gitdab.com/oatmealine and https://gitlab.com/oatmealine
i should probably split events into seperate files, thatd be smart
yt.translate(params.join(' '), { to: lang, format: 'plain' }).then(translated => {
let translateEmbed = new Discord.RichEmbed().setDescription(translated);
})
Привет,
это не совсем корректный подход к переводу так как при склеивании нескольких фраз в одну строку params.join(' ')
может измениться общий смысл получившейся фразы.
Правильнее будет передавать params
как массив и в колбеке сделать translated.join(' ')
instead of doing
function addCommands(cs) {
cs.addCommand
cs.addCommand
// ...
}
just
commands = []
function addCommands(cs) {
for (let c of commands) {
cs.addCommand
}
}
i think thatd be smart
i think its still not enough lets do more refactoring
lets fuckin dismantle util.ts
please do. fucking PLESASE
do it. now
I've selected util.ts for refactoring, which is a module of 513 lines of code and 83 incoming calls. Addressing this will make our codebase more maintainable and improve Better Code Hub's Separate Concerns in Modules guideline rating! 👍
Here's the gist of this guideline:
penis!!!!!!!!!!!!!!!!
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.