refactor: switch api and gateway to V8 (#4879)

Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com>
This commit is contained in:
Sugden
2021-02-11 17:10:35 +00:00
committed by GitHub
parent ae3c3d80ee
commit ee5bc1a5c4
33 changed files with 372 additions and 364 deletions

View File

@@ -6,17 +6,13 @@ const Discord = require('../src');
const client = new Discord.Client({
shards: process.argv[2],
shardCount: process.argv[3],
intents: Discord.Intents.NON_PRIVILEGED,
});
client.on('message', msg => {
if (msg.content.startsWith('?eval') && msg.author.id === '66564597481480192') {
try {
const com = eval(
msg.content
.split(' ')
.slice(1)
.join(' '),
);
const com = eval(msg.content.split(' ').slice(1).join(' '));
msg.channel.send(com, { code: true });
} catch (e) {
msg.channel.send(e, { code: true });