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

Add /show-script command to print script source code, fixes #431 #434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add /show-script command to print script source code, fixes #431 #434

wants to merge 1 commit into from

Conversation

alexgartrell
Copy link

Not sure if there's a better way to get this information out, but I found it to be useful.

@alexgartrell
Copy link
Author

FWIW, when I ran the testing framework, it puked in chrome unless I commented out

      // window.navigator = exports.navigator;

in test/mocks/mock_navigator.js

usage: '<script name>',
category: 'scripts',
run: function() {
const script = this.chat.scriptHandler.getScriptByName(this.scriptName);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of inconsistent indentation, would you mind cleaning this up a little? Generally this follows the Google javascript style of a 2-space indent for new blocks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants