Skip to content

Commit f907301

Browse files
committed
feat: Summon
1 parent 60f62f7 commit f907301

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

src/commands/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import server from './server';
2626
import skierowanie from './skierowanie';
2727
import spotify from './spotify';
2828
import stats from './stats';
29+
import summon from './summon';
2930
import typeofweb from './towarticle';
3031
import wiki from './wiki';
3132
import xd from './xd';
@@ -57,6 +58,7 @@ const allCommands = [
5758
skierowanie,
5859
spotify,
5960
stats,
61+
summon,
6062
typeofweb,
6163
wiki,
6264
xd,

src/commands/prs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Command } from '../types';
22

33
const formatter = new Intl.ListFormat('pl', { style: 'long', type: 'conjunction' });
44

5-
const link: Command = {
5+
const prs: Command = {
66
name: 'prs',
77
description: 'PRs are welcome',
88
args: 'required',
@@ -19,4 +19,4 @@ const link: Command = {
1919
},
2020
};
2121

22-
export default link;
22+
export default prs;

src/commands/summon.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Command } from '../types';
2+
3+
const summon: Command = {
4+
name: 'summon',
5+
description: '_Wake up, Michał, someone is wrong on the Internet…_',
6+
args: 'prohibited',
7+
cooldown: 60,
8+
execute(msg) {
9+
return msg.channel.send({
10+
files: [
11+
{
12+
attachment: 'https://i.imgur.com/Sl42AMi.png',
13+
},
14+
],
15+
});
16+
},
17+
};
18+
19+
export default summon;

src/commands/xd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Command } from '../types';
22

3-
const link: Command = {
3+
const xd: Command = {
44
name: 'xd',
55
description: 'XD',
66
args: 'prohibited',
@@ -16,4 +16,4 @@ const link: Command = {
1616
},
1717
};
1818

19-
export default link;
19+
export default xd;

0 commit comments

Comments
 (0)