Skip to content

Commit bc346bc

Browse files
author
Michał Miszczyszyn
authored
Revert "Revert "Apple silicon m1 command (#52)" (#54)" (#55)
This reverts commit 8cdd230.
1 parent 8cdd230 commit bc346bc

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"discord.rss": "5.0.6",
2828
"dotenv": "8.2.0",
2929
"erlpack": "github:discordapp/erlpack",
30-
"isolated-vm": "3.3.3",
30+
"isolated-vm": "3.3.7",
3131
"node-cache": "5.1.2",
3232
"node-fetch": "2.6.0",
3333
"polish-plurals": "1.1.0",

src/commands/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ import xd from './xd';
2121
import youtube from './youtube';
2222
import typeofweb from './towarticle';
2323
import wiki from './wiki';
24+
import m1 from './m1';
2425

25-
const COMMAND_PATTERN = new RegExp(getConfig('PREFIX') + '([a-z]+)(?: (.*))?');
26+
const COMMAND_PATTERN = new RegExp(getConfig('PREFIX') + '([a-z1-9]+)(?: (.*))?');
2627

2728
const allCommands = [
2829
co,
2930
execute,
3031
link,
32+
m1,
3133
markdown,
3234
mdn,
3335
mongodb,

src/commands/m1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Command } from '../types';
2+
3+
const m1: Command = {
4+
name: 'm1',
5+
description: 'Apple silicon m1',
6+
args: false,
7+
cooldown: 10,
8+
execute(msg) {
9+
return msg.channel.send([
10+
`👨‍💻 ***Czy Apple Silicon m1 jest gotowe dla developerów?*** 👩‍💻 \n`,
11+
`https://isapplesiliconready.com/for/developer`,
12+
`https://www.apple.com/mac/m1/`,
13+
]);
14+
},
15+
};
16+
17+
export default m1;

0 commit comments

Comments
 (0)