Giter VIP home page Giter VIP logo

miyako's Introduction

Miyako

Discord

A general purpose Discord Bot. This is the new in-progress rewrite that is still being worked on.

image

Running

$ git clone https://github.com/ravener/miyako
$ cd miyako
$ cp .env.example .env
$ nano .env # Fill this
$ npm install
$ node src/deploy-commands.js # Deploy slash commands.
$ node src/index.js

License

MIT License

miyako's People

Contributors

ravener avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

miyako's Issues

Question

So um, are there anyway to change from PostgreSQL to something else? I feel like PostgreSQL isn't an option for me, and I would really appreciate it if there is a method for that.

Oh, if you can, may I ask for a list of stuff that I need to rewrite? Thanks.

UnhandledPromiseRejectionWarning

After running node index.js this occurs:

Loaded 11 events.
(node:2432) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
(node:2432) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2432) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```

Help

TypeError: require(...) is not a constructor
    at Map.load (C:\Users\aa\Desktop\bot\structures\Store.js:31:28)
    at map (C:\Users\aa\Desktop\bot\structures\Store.js:48:42)
    at Array.map (<anonymous>)
    at Map.loadFiles (C:\Users\aa\Desktop\bot\structures\Store.js:48:23)

Framework library

Lot of people are trying to self host this bot and what not and sometimes when I start a new bot I need a framework like this but I'm too lazy to copy paste everything and set it up again.

I've been planning to make an independent framework in which the goal is simplicity, maybe expand more in the future.

If anyone else is interested please let me know your opinions, I'd be willing to work together if interested.

Command cooldowns

Implement cooldowns for commands.

It needs to be shared with both text commands and slash commands.

Unify the command handler code

The command handler is prone to breaking DRY (Don't Repeat Yourself), repeating checks and such, it'd be wise to unify the checks in one place and re-use it with both.

Database support

Start adding database support for saving guild settings and more.

The bot does not respond after a while

Hey, I'm new to programming so maybe the solution is in front of me but I'm ignoring it, I hope you can help me

The clone I made of the bot is going great and I was in charge of translating it a little into Spanish, it happens that after a while that it has been on, it simply stops responding. The cleanup log still works but there is no way for it to respond to commands.
As I said I am new to javascript so forgive me if the solution is as simple as changing a line

Thanks for the bot and I wait for an answer.

Rewrite

Yet another rewrite is in progress and might be pushed soon.

The rewrite uses discord.js v14 and supports both normal commands and slash commands.

Slash Command subcommands

Currently the way we create slash commands, subcommands are not possible, think of a way to do them in a clean way.

Missing file

You have to add the .env file by yourself.

Required:

TOKEN_DEV=
TOKEN =
DEV=
CLIENT_ID=

question regarding imgflip api

for the user and password section for imgflip api, do we have enter our username and password, we use to login in imflip.com? i am a bit confused on how to get imgflip api details and google and forums are of no help

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.