Giter Site home page Giter Site logo

oatmealine / boteline Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 1.79 MB

a friendly swiss knife discord bot from celeste mountain built on cumsystem mostly focusing on fun or utility commands

License: MIT License

TypeScript 99.89% Shell 0.11%
bot discord discord-bot discordjs javascript nodejs

boteline's Introduction

boteline's People

Contributors

imgbotapp avatar leo60228 avatar oatmealine avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

boteline's Issues

Refactor main.ts

i should probably split events into seperate files, thatd be smart

Bad practice when several texts translating

yt.translate(params.join(' '), { to: lang, format: 'plain' }).then(translated => {
    let translateEmbed = new Discord.RichEmbed().setDescription(translated);
})

Привет,
это не совсем корректный подход к переводу так как при склеивании нескольких фраз в одну строку params.join(' ') может измениться общий смысл получившейся фразы.

Правильнее будет передавать params как массив и в колбеке сделать translated.join(' ')

change addCommands format

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

Refactor util.ts

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:

  • Definition 📖
    Avoid large modules with high fan-in (nr. of incoming calls).
  • Why
    This keeps the codebase loosely coupled which makes it easier to minimize the consequences of changes.
  • How 🔧
    Identify and extract responsibilities of large modules into smaller ones and hide implementation details behind interfaces. Target having modules that have no more than 10 incoming calls.

penis!!!!!!!!!!!!!!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.