Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aad8c3c50f | |||
| f47028b5f5 |
@@ -2,7 +2,7 @@ name: Build and Push Docker Image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main, cmdsay ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -21,14 +21,14 @@ jobs:
|
|||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
# Build the image with the commit hash tag
|
# Build the image with the commit hash tag
|
||||||
docker build -t git.cesium.one/kira/cockinator .
|
docker build -t git.cesium.one/kira/cockinator:cmdsay .
|
||||||
|
|
||||||
- name: Push Docker Images
|
- name: Push Docker Images
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME: ${{ github.ref_name }}
|
BRANCH_NAME: ${{ github.ref_name }}
|
||||||
SHORT_HASH: ${{ github.sha }}
|
SHORT_HASH: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
docker push git.cesium.one/kira/cockinator
|
docker push git.cesium.one/kira/cockinator:cmdsay
|
||||||
|
|
||||||
- name: Log out from registry
|
- name: Log out from registry
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
20
commands/say.js
Normal file
20
commands/say.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
const { SlashCommandBuilder } = require('discord.js');
|
||||||
|
const config = require('../config.json');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
data: new SlashCommandBuilder()
|
||||||
|
.setName('say')
|
||||||
|
.setDescription('speak on behalf of cockinator')
|
||||||
|
.addStringOption(option =>
|
||||||
|
option.setName('message')
|
||||||
|
.setDescription('The message to say')
|
||||||
|
.setRequired(true)
|
||||||
|
),
|
||||||
|
async execute(interaction) {
|
||||||
|
if (!config.parentsAndOrGuardians.includes(interaction.member.id)) {
|
||||||
|
return interaction.reply({ content: 'noe :(', ephemeral: true });
|
||||||
|
}
|
||||||
|
const message = interaction.options.getString('message');
|
||||||
|
await interaction.reply({ content: message });
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user