This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(help): new help command using embeds
new help command using embeds as well as a slight overhaul of the array system for aliases
- Loading branch information
Showing
12 changed files
with
389 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const { getObject } = require('../../array'); | ||
const commando = require('discord.js-commando'); | ||
module.exports = class inchCommand extends commando.Command { | ||
constructor(client) { | ||
super(client, { | ||
name: 'inch', | ||
aliases: ['inch/360', 'inch/rev'], | ||
group: 'math', | ||
memberName: 'inch', | ||
description: 'Converts Senstivity to inch/360', | ||
details: | ||
'Converts Senstivity to inch/360 \nTo see the Supported games do /games', | ||
examples: ['`/inch 0.95 ow 1600`'], | ||
format: '<sens> <game|yaw> <cpi>', | ||
|
||
args: [ | ||
{ | ||
key: 'sens', | ||
prompt: 'What Sensitivity do you want to convert from', | ||
type: 'float', | ||
}, | ||
{ | ||
key: 'yawv', | ||
label: 'Game or yaw value', | ||
prompt: 'What game or yaw value do you want to use', | ||
type: 'gamename|float', | ||
}, | ||
{ | ||
key: 'cpi', | ||
label: 'cpi/dpi', | ||
prompt: 'What CPI/DPI do you want to use', | ||
type: 'float', | ||
}, | ||
], | ||
}); | ||
} | ||
|
||
async run(message, args) { | ||
const output = ( | ||
360 / | ||
(args.cpi * getObject(args.yawv, 'yaw') * args.sens) | ||
).toFixed(2); | ||
return message.say(output + ' inch/360'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.