Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to setup permissions.json? #50

Closed
skyleter opened this issue Feb 12, 2016 · 15 comments
Closed

how to setup permissions.json? #50

skyleter opened this issue Feb 12, 2016 · 15 comments

Comments

@skyleter
Copy link

i dont understand, sorry

@Dougley
Copy link

Dougley commented Feb 12, 2016

Let's say your Discord ID is 1234 and you want to use eval and restrict it for everybody else.

{
    "global":{
        "eval": false
    },
    "users":{
        "1234":{
            "eval": true
        }
    }
}

This will enable only you to use eval and nobody else.

@skyleter
Copy link
Author

thx :)

@skyleter
Copy link
Author

@《Şᗪ》💎 ŜKYŁẸŤẸŘ doesn't have permission to execute eval!

not worked :(

@Dougley
Copy link

Dougley commented Feb 12, 2016

Are you sure you've entered an ID instead of an username?

You can get your id via !myid

@skyleter
Copy link
Author

i have this

{
    "global":{
        "eval": false
    },
    "Elite Member":{
        "145022418828656640":{
            "eval": true
        }
    }
}

ps do u know how to set a welcome message when a user join ? ...

@Dougley
Copy link

Dougley commented Feb 12, 2016

You're not supposed to change users to something else (Elite Members)

I don't t know about welcoming

@skyleter
Copy link
Author

thanks.

And :(

@Sikksens
Copy link

you can use something like this as a welcome message.

bot.on("serverNewMember", function(server, user){ bot.sendMessage(server.defaultChannel, "Welcome " + user.username); })

@chalda
Copy link
Owner

chalda commented Feb 12, 2016

Nice thing about java script projects like this is anyone who has stringed
together a website can probably hack in whatever features they want. That
being said we should move this in as an actual plugin so that It can be
toggled on off
On Feb 12, 2016 10:32 AM, "Jovan Retief" notifications@github.com wrote:

you can use something like this as a welcome message.

bot.on("serverNewMember", function(server, user){
bot.sendMessage(server.defaultChannel, "Welcome" + user.username);
})


Reply to this email directly or view it on GitHub
#50 (comment).

@skyleter
Copy link
Author

what line?

@chalda
Copy link
Owner

chalda commented Feb 12, 2016

You could prolly drop that anywhere in the main js file tbh.
On Feb 12, 2016 1:47 PM, "Skyleter" notifications@github.com wrote:

what line?


Reply to this email directly or view it on GitHub
#50 (comment).

@skyleter
Copy link
Author

discord_bot.js ?
I put it :


// WELCOME MSG
bot.on("serverNewMember", function(server, user){ bot.sendMessage(server.defaultChannel, "Welcome to SD Chat! " + user.username); })

at line 730 just after //message isn't a command or is from us code

How can i do it to when a user connect instead of newmember?

@NekoTony
Copy link

NekoTony commented Sep 9, 2016

What does eval stand for?

@chalda
Copy link
Owner

chalda commented Sep 9, 2016

@Nerdietony eval[ulate]. it can take a string, parse it as javascript and execute. Its not very safe as you could potentially do some nasty stuff like overwrite the program internals etc. dont think it actually lets you do it for our app, but when you have javascript in the browser you could definitely do that.

@NekoTony
Copy link

NekoTony commented Sep 9, 2016

Oh yeaah, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants