Limit to 5 ytp per day
This commit is contained in:
parent
f5f7b48935
commit
8f9bb6b4f8
1 changed files with 3 additions and 1 deletions
|
@ -8,12 +8,14 @@ const { ytpChannelId } = process.env;
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('addytp')
|
.setName('addytp')
|
||||||
.setDescription('Add a video to the pool of ytps')
|
.setDescription('Add a video to the pool of ytps. You can add 5 per day.')
|
||||||
.addStringOption(option =>
|
.addStringOption(option =>
|
||||||
option.setName('url')
|
option.setName('url')
|
||||||
.setDescription('URL of the video you want to add.')
|
.setDescription('URL of the video you want to add.')
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
category: 'utility',
|
category: 'utility',
|
||||||
|
ratelimit: 5,
|
||||||
|
cooldown: 3600,
|
||||||
async execute(interaction, args) {
|
async execute(interaction, args) {
|
||||||
const url = args.url;
|
const url = args.url;
|
||||||
if (!await utils.stringIsAValidurl(url)) {
|
if (!await utils.stringIsAValidurl(url)) {
|
||||||
|
|
Loading…
Reference in a new issue