Coder Social home page Coder Social logo

cord's People

Contributors

copygirl avatar victorious3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cord's Issues

Add config option to disable Discord nicknames

... and just use their username. (Edited for clarity)

a toggle for enabling the display of nicknames

and eventually a formatting string for changing <{{nick}}> to for example [&a{{user}}&r]
and allow customisation without patching cord and breaking update

register timeouts for commands

eventually allow adding a int value for a timeout, not allowing either a certain person or anybody to spam the command
will be useful for simple responses to avoid creating loops with other bots and not create too much spam
bonus points fro allowing multiple commands to use the same timer so that multiple commands are blocked for x seconds after using any of them

Bot randomly disconnects from Discord.

I haven't seen any error in the backlog about this. Happens at random it seems. The bot will appear offline and stop relaying Discord messages to IRC. Oddly though, it still relays IRC messages to Discord and stays online on IRC.

Bot crashes when removing a non-existent ban.

[05:42:11]❮▼❯ <snipped> removes ban on *[email protected]
[05:42:11]◀━━ Parts: discord (relay@<snipped>) ([ZNC] Relay offline.)

/home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:849
                        throw err;
                        ^

TypeError: Cannot read property 'filter' of undefined
    at chanModes (/home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:300:37)
    at /home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:319:25
    at Array.forEach (native)
    at Client.<anonymous> (/home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:270:26)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at iterator (/home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:846:26)
    at Array.forEach (native)
    at Socket.handleData (/home/deathspawn/git/relays/cord/node_modules/irc/lib/irc.js:841:15)
    at emitOne (events.js:96:13)

npm ERR! Linux 4.5.5-x86_64-linode69
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node cord.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node cord.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cord package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node cord.js
npm ERR! You can get information on how to open an issue for this project with:                                                                                                   npm ERR!     npm bugs cord
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cord
npm ERR! There is likely additional logging output above.
                                                                                                                                                                                  npm ERR! Please include the following file with any support request:
npm ERR!     /home/deathspawn/git/relays/cord/npm-debug.log

TypeError: Cannot read property 'requestedDisconnect' of null

/home/koppeh/projects/cord/node_modules/irc/lib/irc.js:936
    if (!this.conn.requestedDisconnect) {
                  ^

TypeError: Cannot read property 'requestedDisconnect' of null
    at Client.send (/home/koppeh/projects/cord/node_modules/irc/lib/irc.js:936:19)
    at Timeout.dequeue [as _onTimeout] (/home/koppeh/projects/cord/node_modules/irc/lib/irc.js:966:22)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)

Might need to look into updating the IRC dependency again.

No documentation for plugs

There is a significant lack of documentation for what configuration options are to be used for plugs and stored in config.json. There is currently information for sockets (auth.json) in the wiki, but without documentation for plugs (specifically the Bridge plug), the project cannot be used for it's intended purpose without figuring it out from the code, by yourself.

Relay others' messages via other user?

Hi,

Maybe bit of a specific (and confusing?) thing, but would there be any way to set a bridge up so that messages that I send myself are always relayed via my personal user on either client, but messages sent by other users are relayed by some bot user that I have on both clients.

I feel like the ignore option could work for the bot portion if I ignore myself, but on the "personal user" bridge I would need to ignore everyone that isn't myself.

IRC socket crashes when message is reported unsendable

When the bot is "quieted" on a channel and it attempts to send a message, the bot crashes.

(03:56) [irc|#main] <Kitty> hazel q PesterDiscord 10s testing
[23:56:25] *** Mode #main +q *!*@01.node.tty.sh by Hazel
(03:56) [discord|#main] <Kitty> hi
[23:56:27] <-- PesterDiscord ([email protected]) has quit (Remote host closed the connection)
/home/kitty/cord/node_modules/irc/lib/irc.js:845
                        throw err;
                        ^

Error: Uncaught, unspecified "error" event. ([object Object])
    at Client.emit (events.js:163:17)
    at Client.<anonymous> (/home/kitty/cord/node_modules/irc/lib/irc.js:639:26)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at iterator (/home/kitty/cord/node_modules/irc/lib/irc.js:842:26)
    at Array.forEach (native)
    at Socket.handleData (/home/kitty/cord/node_modules/irc/lib/irc.js:837:15)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)

How do I ignore a specific Discord user?

The wiki doesn't state how to ignore a Discord username. I've tried adding discord:username, discord:username#0000, discord:#0000, discord:@username, on both of the ignore settings and still messages get relayed.

Edit: Also tried discord:000 and still relaying.

Edit 2: The user is a bot, not sure if that makes any difference.

Crash when creating a channel

Made a channel on Discord and didn't include the bot's role or @everyone and it crashed.

/home/deathspawn/git/relays/cord/sockets/Discord.js:237`
    this._name = this._discordChannel.name;
                                     ^

TypeError: Cannot read property 'name' of null
    at new DiscordChannel (/home/deathspawn/git/relays/cord/sockets/Discord.js:237:38)
    at DiscordSocket._getChannel (/home/deathspawn/git/relays/cord/sockets/Discord.js:114:17)
    at Client.DiscordSocket._discord.on (/home/deathspawn/git/relays/cord/sockets/Discord.js:64:12)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at ClientDataManager.newChannel (/home/deathspawn/git/relays/cord/node_modules/discord.js/src/client/ClientDataManager.js:68:51)
    at ChannelCreateAction.handle (/home/deathspawn/git/relays/cord/node_modules/discord.js/src/client/actions/ChannelCreate.js:6:40)
    at ChannelCreateHandler.handle (/home/deathspawn/git/relays/cord/node_modules/discord.js/src/client/websocket/packets/handlers/ChannelCreate.js:7:34)
    at WebSocketPacketManager.handle (/home/deathspawn/git/relays/cord/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:93:65)
    at WebSocketManager.eventMessage (/home/deathspawn/git/relays/cord/node_modules/discord.js/src/client/websocket/WebSocketManager.js:198:31)

npm ERR! Linux 4.5.5-x86_64-linode69
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node cord.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node cord.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cord package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node cord.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cord
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cord
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/deathspawn/git/relays/cord/npm-debug.log

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.