Coder Social home page Coder Social logo

oxyl's Introduction

ARCHIVED

moved to oxylbot

oxyl

Discord bot using Eris library

Example public-config.json:

{
        "creators": ["155112606661607425"],
        "datadog": { "prefix": "oxyl." },
        "defaultInvitePermissionNumber": 298183686,
        "donator": {
                "channel": "254770965018443776",
                "role": "292657073987125249"
        },
        "prefixes": ["o!", "oxyl", "mention"],
        "postStats": true,
        "serverChannel": "265998475831934977",
        "shardsPerWorker": 2,
        "updates": {
                "channel": "270576454117359617",
                "guild": "254768930223161344",
                "role": "265293123821895680"
        },
        "websocketServer": true
}

beta is optional stating whether or not the bot is in beta, if true then some stuff is disabled

creators is required and is an array of user ids

datadog is optional if you want to send stats to datadog

databaseName is optional, if you want a different database name besides Oxyl, set it there

defaultInvitePermissionNumber is required and is used for the invite command

donator is optional to say thank you for donating and add a role to a member in a server

prefixes is an array of prefixes, mention is replaced with a bot mention

postStats is not required, but if true see private-config to set the site tokens

serverChannel is not required, sends server joins/leaves to a channel

shardsPerWorker specifies how many shards should be put on each worker

updates is all optional which sets up the update command

websocketServer is optional and states whether or not to start a web socket server on 7025. should only be used if done with oxyl-site too

Example private-config.json:

{
	"database": { "password": "cool fam" },
	"dbotsKey": "very long key",
	"dbotsOrgKey": "very long key"
	"carbonKey": "shorter key",
	"googleKeys": ["a key", "Another"],
	"secret": "thing from bot page",
	"sentryLink": "url from sentry",
	"token": "thing from bot page",
	"webhook": "webhook url"
}

database is optional but bot will most likely break without it. this is passed to rethinkdbdash login

Posting stuff - if a key is not present it will just not post to the site it corresponds to, if you have postStats off there is no reason for any of the keys

dbotsKey is to post to https://bots.discord.pw

dbotsOrgKey is to post to http://discordbots.org

carbonKey is to post to https://www.carbonitex.net/discord/bots

googleKeys is an array of keys with the youtube data api v3 enabled and required for the bot to work correctly

secret is only required if you use the web socket server

sentryLink is optional, but if you want to use sentry.io put the link there

token is required for the bot to log in

webhook is optional for status about restarts and stuff

oxyl's People

Contributors

antoniojamore avatar greenkeeper[bot] avatar minemidnight 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

oxyl's Issues

Error: This video contains content from [Merlin] PschentMusic, who has blocked it in your country on cop...

https://sentry.io/john-silva/oxyl/issues/251242698/

Error: This video contains content from [Merlin] PschentMusic, who has blocked it in your country on copyright grounds.
  File "/home/dbots/oxylbeta/node_modules/ytdl-core/lib/info.js", line 61, in null.<anonymous>
    return callback(new Error(util.between(body,
  File "/home/dbots/oxylbeta/node_modules/ytdl-core/lib/request.js", line 43, in IncomingMessage.<anonymous>
    callback(null, body);
  File "events.js", line 91, in emitNone
  File "events.js", line 186, in IncomingMessage.emit
  File "_stream_readable.js", line 974, in endReadableNT
...
(2 additional frame(s) were not displayed)

Error: This video contains content from [Merlin] PschentMusic, who has blocked it in your country on copyright grounds.

TypeError: Cannot read property 'private' of undefined

[root@mm oxyl-master]# node framework.js
/root/oxyl-master/oxyl.js:4
global.bot = new Eris(framework.config.private.token, {
                                      ^

TypeError: Cannot read property 'private' of undefined
    at Object.<anonymous> (/root/oxyl-master/oxyl.js:4:39)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/oxyl-master/framework.js:1:76)
    at Module._compile (module.js:571:32)

I've done a file and put it in the specified location but the problem still exists

exports.awaitMessages

exports.awaitMessages = async (channel, filter, options) => {
^
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/test/oxyl/oxyl.js:2:20)
at Module._compile (module.js:570:32)

add a way to allow whitelisted urls

hi,

it would be great if you could add someway to whitelist urls... for example, i would censor with regex all possible urls but if i whitelist a specific url, then the censor trigger wouldnt be triggered if that url was whitelisted.

thanks in advance!

Song skipped with this error message

censor kick action

could you perhaps add a option delete all messages from someone going to be kicked by a censor violation? something like censor add kick --deletemessages regex

thank you in advance!

censor regex

hi mate,

it seems i found a bug with the censor function...it only seems to censor the first entry on the list
all other censor regex's are ignored.

Can you please check?

Thanks!

"oxyl dog" does not work

The "oxyl dog" command fails on my server with the error message

TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
    at process (/home/dbots/oxyl/src/bot/commands/default/dog.js:10:2)
    at <anonymous>

Error when using the google command

When a user tries the google command, it returns with the following response:

Error: Service Unavailable
    at Request.callback (/home/mine/oxyl/node_modules/superagent/lib/node/index.js:686:11)
    at IncomingMessage.<anonymous> (/home/mine/oxyl/node_modules/superagent/lib/node/index.js:868:18)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1057:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

I'm not a big JS guy otherwise I'd have a look at it myself

Music volume

There doesn't seem to be a command for changing the volume of the bot, can we get something like this?

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.