Initial changes for customized use
This commit is contained in:
parent
f207e5ccb4
commit
ab210ad08d
6 changed files with 14 additions and 12 deletions
|
@ -11,10 +11,7 @@ class AboutCommand extends Command {
|
|||
|
||||
exec(message) {
|
||||
return message.util.send([
|
||||
'Comp_iler is made by 1Computer.',
|
||||
'Source code is available at <https://github.com/1Computer1/comp_iler>.',
|
||||
'',
|
||||
'Comp_iler runs on Myriad, a Docker-based arbitrary code evaluation server!',
|
||||
'Compiler runs on Myriad, a Docker-based arbitrary code evaluation server!',
|
||||
'Check it out here <https://github.com/1Computer1/myriad>.',
|
||||
'',
|
||||
`**Guilds**: ${this.client.guilds.cache.size}`,
|
||||
|
|
|
@ -15,7 +15,7 @@ class HelpCommand extends Command {
|
|||
`Put a \`${codePrefix}\` before a code block or inline codeblock that starts with a language code to execute it.`,
|
||||
`For list of enabled languages, use the \`${prefix} languages\` command.`,
|
||||
'',
|
||||
'See the readme for usage examples and supported languages: <https://github.com/1Computer1/comp_iler>'
|
||||
'For usage examples and supported languages, see: <https://haste.snrd.de/compiler.md>'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ class LanguagesCommand extends Command {
|
|||
'**List of enabled languages (Language Codes)**:',
|
||||
...languages.map(lang => `\`${Myriad.Languages.get(lang).join('`, `')}\``),
|
||||
'',
|
||||
'See the readme for usage examples: <https://github.com/1Computer1/comp_iler>'
|
||||
'For usage examples, see: <https://haste.snrd.de/compiler.md>'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@ const client = new CompilerClient(config);
|
|||
|
||||
client.once('ready', () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('[Info] Comp_iler ready to go!');
|
||||
console.log('[Info] Compiler ready to go!');
|
||||
});
|
||||
|
||||
client.on('ready', () => {
|
||||
client.user.setPresence({
|
||||
activity: { name: '@Comp_iler help' },
|
||||
activity: { name: `${config.prefix} help` },
|
||||
status: 'online'
|
||||
});
|
||||
});
|
||||
|
|
|
@ -52,11 +52,11 @@ class MessageInvalidListener extends Listener {
|
|||
|
||||
const output = `\`\`\`\n${response}\n\`\`\``;
|
||||
if (output.length >= 2000) {
|
||||
const key = await fetch('https://hasteb.in/documents', { method: 'POST', body: response })
|
||||
const key = await fetch('https://haste.snrd.de/documents', { method: 'POST', body: response })
|
||||
.then(res => res.json())
|
||||
.then(json => json.key);
|
||||
|
||||
return message.util.send(`Output was too long: <https://hasteb.in/${key}>`);
|
||||
return message.util.send(`Output was too long: <https://haste.snrd.de/${key}>`);
|
||||
}
|
||||
|
||||
return message.util.send(output);
|
||||
|
|
|
@ -6,7 +6,7 @@ class Myriad {
|
|||
}
|
||||
|
||||
url(k) {
|
||||
return `http://localhost:${this.port}/${k}`;
|
||||
return `http://127.0.0.1:${this.port}/${k}`;
|
||||
}
|
||||
|
||||
getLanguages() {
|
||||
|
@ -53,13 +53,16 @@ class Myriad {
|
|||
|
||||
const entries = [
|
||||
['apl', ['apl']],
|
||||
['arnoldc', ['arnoldc', 'arnold']],
|
||||
['bash', ['bash', 'sh']],
|
||||
['brainfuck', ['brainfuck', 'bf']],
|
||||
['c', ['c']],
|
||||
['cpp', ['cpp']],
|
||||
['csharp', ['csharp', 'cs']],
|
||||
['elixir', ['elixir']],
|
||||
['emojicode', ['emojicode', 'emojic', '😂']],
|
||||
['erlang', ['erlang', 'erl']],
|
||||
['d', ['dlang', 'd']],
|
||||
['fsharp', ['fsharp', 'fs']],
|
||||
['go', ['golang', 'go']],
|
||||
['haskell', ['haskell', 'hs']],
|
||||
|
@ -68,6 +71,7 @@ const entries = [
|
|||
['javascript', ['javascript', 'js']],
|
||||
['julia', ['julia']],
|
||||
['lua', ['lua']],
|
||||
['lolcode', ['lolcode', 'lol']],
|
||||
['nim', ['nim', 'nimrod']],
|
||||
['ocaml', ['ocaml', 'ml']],
|
||||
['pascal', ['pascal', 'pas', 'freepascal']],
|
||||
|
@ -79,6 +83,7 @@ const entries = [
|
|||
['racket', ['lisp']],
|
||||
['ruby', ['ruby', 'rb']],
|
||||
['rust', ['rust', 'rs']],
|
||||
['setlx', ['setlx', 'stlx']],
|
||||
['typescript', ['typescript', 'ts']]
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue