Compare commits

...

3 commits

Author SHA1 Message Date
73e5050ded json/board/ 2022-08-28 17:23:02 +02:00
afed8e9108 Add owner commands 2022-08-28 17:22:49 +02:00
7db77c9916 Fix name 2022-08-28 17:22:26 +02:00
3 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
node_modules/
bin/
config/config.json
json/board/

View file

@ -7,7 +7,7 @@ const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret } = process.env
export default {
data: new SlashCommandBuilder()
.setName('deletewteet')
.setName('deletetweet')
.setDescription('Delete a tweet')
.addStringOption(option =>
option.setName('tweetid')

View file

@ -113,6 +113,34 @@ const commands = [
option.setName('something')
.setDescription('🤫')
.setRequired(true)),
new SlashCommandBuilder()
.setName('die')
.setDescription('Kill the bot'),
new SlashCommandBuilder()
.setName('ublacklist')
.setDescription('Blacklist a user from the bot')
.addStringOption(option =>
option.setName('command')
.setDescription('Which command do you want to get a user blacklisted from?')
.setRequired(true))
.addStringOption(option =>
option.setName('userid')
.setDescription('Who do you want to blacklist?')
.setRequired(true))
.addStringOption(option =>
option.setName('reason')
.setDescription('The reason of the blacklist.')
.setRequired(false)),
new SlashCommandBuilder()
.setName('deletetweet')
.setDescription('Delete a tweet')
.addStringOption(option =>
option.setName('tweetid')
.setDescription('The id of the tweet you wish to delete.')
.setRequired(true)),
]
.map(command => command.toJSON());