Giter Club home page Giter Club logo

sylphy's Introduction

sylphy's People

Contributors

bit0r1n avatar dependabot[bot] avatar pyraxo avatar samuelfranzini avatar washingdone 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sylphy's Issues

Invalid arguments on commands

args1
I wrote an example ping command that takes a member as an input:
https://paste.safe.moe/xitikemiti.js
But I get the above image as an error when I don't specify a member. I think it has something to do with the fact that I don't have any i18n setup. I can't find anything on the wiki about i18n nor can I find any bots with an example.
Also, when I do specify a member, trying to access any Eris properties like .mention comes up as undefined.

Members type dont work with mention.

Hello,

The type members don't work if we use mention. If you do

.ban @pyraxo That's will respond: User not found
.ban pyraxo will found the user.

Docs

Where are the docs???

Issue with permissions

I've tried making some moderation commands with your framework, but it doesn't seem to care about the permissions I set. This is how the commands file begins:

const { Command } = require('sylphy');

class Purge extends Command {
    constructor (...args) {
        super (...args, {
            name: 'purge',
            group: 'moderation',
            aliases: ['clear', 'delete', 'prune'],
            cooldown: 2,
            options: { guildOnly: true, requirements: { permissions: { manageMessages: true } } },

Am I doing it wrong or is there actually an issue?

Cannot read property 'id' of undefined

https://sentry.io/sagiri/sagiri/issues/337599719/

TypeError: Cannot read property 'id' of undefined
  File "/opt/sagiri/node_modules/sylphy/src/core/Bridge.js", line 230, in Client._client.on.msg
    if (msg.author.id === this._client.user.id || msg.author.bot) return
  File "/opt/sagiri/node_modules/eventemitter3/index.js", line 150, in Client.emit
    case 2: listeners[i].fn.call(listeners[i].context, a1); break;
  File "/opt/sagiri/node_modules/eris/lib/gateway/Shard.js", line 394, in Shard.wsEvent
    this.client.emit("messageCreate", channel.messages.add(packet.d, this.client));
  File "/opt/sagiri/node_modules/eris/lib/gateway/Shard.js", line 1494, in WebSocket.ws.onmessage
    this.wsEvent(packet);
  File "/opt/sagiri/node_modules/ws/lib/EventTarget.js", line 99, in WebSocket.onMessage
    listener.call(this, new MessageEvent(data, this));
...
(14 additional frame(s) were not displayed)

TypeError: Cannot read property 'id' of undefined

image

Can't even spawn it?

Every time I make a new instance of the client using new Bot({ ..options}) I get the following:
TypeError: Cannot convert undefined or null to object

adminOnly dont work :/

Hey,

the option adminOnly dont work. I set my ID (and urs xd) into the ADMIN_IDS env. But still dont respond. is like the option dont reconize the ID.

Thanks

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.