compiler-discord/src/languages/python.js

24 lines
483 B
JavaScript
Raw Normal View History

2019-03-12 10:09:46 +01:00
const Language = require('../struct/Language');
class Python extends Language {
constructor() {
super('python', {
aliases: ['python', 'py'],
loads: ['python3', 'python2'],
options: {
2: () => ''
}
2019-03-12 10:09:46 +01:00
});
}
runWith(options) {
if (options.has('2')) {
return { id: 'python2', env: {} };
}
return { id: 'python3', env: {} };
}
2019-03-12 10:09:46 +01:00
}
module.exports = Python;