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

Allow user direct access to client when initating a plugin #25

Open
kyrivanderpoel opened this issue Oct 29, 2017 · 0 comments
Open

Allow user direct access to client when initating a plugin #25

kyrivanderpoel opened this issue Oct 29, 2017 · 0 comments
Assignees

Comments

@kyrivanderpoel
Copy link
Collaborator

Right now, plugins are initiated only with a plugin configuration. We should give the plugin access to the client created in discordbot.js, so a user can change their plugin code from this:

if (message.author.username != config.client.user.username) {
...

To this:

if (message.author.username != this.client.user.username) {
...
@kyrivanderpoel kyrivanderpoel self-assigned this Oct 29, 2017
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

1 participant