initial commit'
This commit is contained in:
51
commands/eightBall.js
Normal file
51
commands/eightBall.js
Normal file
@ -0,0 +1,51 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
|
||||
const responses = [
|
||||
"Pas régulièrement.",
|
||||
"Dans cette économie actuelle ?!",
|
||||
"On s'en fout, non ?",
|
||||
"C'est pas faux.",
|
||||
"Il dit qu'il voit pas le rapport.",
|
||||
"J'ai pas regardé dans le tiroir ...",
|
||||
"M'enfin ?!",
|
||||
"Est ce bien nécessaire ?",
|
||||
"Ce serait affligeant.",
|
||||
"Je ne crois pas non.",
|
||||
"Qu'est ce que t'insinues ?",
|
||||
"Je demanderais à ma maman.",
|
||||
"Elle a dit non !",
|
||||
"Dans une certaine mesure.",
|
||||
"Avec l'accord du pédiatre !",
|
||||
"Seulement si tu te laves les mains.",
|
||||
"Vous pouvez répéter la question ?",
|
||||
"Bon sang, mais c'est bien sûr !",
|
||||
"Mais vous êtes fous !",
|
||||
"Mais evidemment !",
|
||||
"Bizarrement, oui.",
|
||||
"Essaye plus tard",
|
||||
"Essaye encore",
|
||||
"Une chance sur deux",
|
||||
"Pas d'avis",
|
||||
"Repose ta question",
|
||||
"D'après moi oui ",
|
||||
"C'est certain",
|
||||
"Très probable",
|
||||
"Sans aucun doute",
|
||||
"Tu peux compter dessus",
|
||||
"C'est non",
|
||||
"Peu probable",
|
||||
"Faut pas rêver",
|
||||
"N'y compte pas",
|
||||
"Impossible",
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('8ball')
|
||||
.setDescription('Replies with the right answer. Sometime.'),
|
||||
async execute(interaction) {
|
||||
const i = Math.floor(Math.random() * responses.length);
|
||||
const reply = responses[i];
|
||||
await interaction.reply(reply);
|
||||
},
|
||||
};
|
10
commands/ping.js
Normal file
10
commands/ping.js
Normal file
@ -0,0 +1,10 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('ping')
|
||||
.setDescription('Replies with Pong!'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply('Pong!');
|
||||
},
|
||||
};
|
19
commands/poll.js
Normal file
19
commands/poll.js
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('poll')
|
||||
.setDescription('Sondage')
|
||||
.addStringOption(option =>
|
||||
option.setName('question')
|
||||
.setDescription('La question que vous souhaitez poser aux autres utilisateurs')
|
||||
.setRequired(true)
|
||||
),
|
||||
async execute(interaction) {
|
||||
const question = interaction.options.get('question').value;
|
||||
const textReply = "";
|
||||
console.log(question);
|
||||
await interaction.reply('Sondage');
|
||||
},
|
||||
};
|
10
commands/randomducul.js
Normal file
10
commands/randomducul.js
Normal file
@ -0,0 +1,10 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('randomducul')
|
||||
.setDescription('Un truc random. Du cul.'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply('Pong!');
|
||||
},
|
||||
};
|
10
commands/server.js
Normal file
10
commands/server.js
Normal file
@ -0,0 +1,10 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('server')
|
||||
.setDescription('Replies with Server info!'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply(`Server name: ${interaction.guild.name}\nTotal members: ${interaction.guild.memberCount}`);
|
||||
},
|
||||
};
|
10
commands/user.js
Normal file
10
commands/user.js
Normal file
@ -0,0 +1,10 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('user')
|
||||
.setDescription('Replies with User info!'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply(`Your tag: ${interaction.user.tag}\nYour id: ${interaction.user.id}`);
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user