Compare commits
2 Commits
0e34a0a4bb
...
0381272d7d
Author | SHA1 | Date | |
---|---|---|---|
0381272d7d | |||
e6936a5364 |
@ -2,8 +2,8 @@ name: NodBot PE Dockerization
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- pe
|
- 'v*-pe'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Pull latest from Git
|
- name: Pull latest from Git
|
||||||
run: |
|
run: |
|
||||||
echo "Branch: ${{ gitea.head_ref }}"
|
echo "Branch: ${{ gitea.ref_name }}"
|
||||||
pwd
|
pwd
|
||||||
whoami
|
whoami
|
||||||
mkdir -p /var/lib/act_runner/
|
mkdir -p /var/lib/act_runner/
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
cd nodbot
|
cd nodbot
|
||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
git checkout ${{ gitea.head_ref }}
|
git checkout ${{ gitea.ref_name }}
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/nodbot
|
cd /var/lib/act_runner/nodbot
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
name: NodBot Production Dockerization
|
name: NodBot Production Dockerization
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Pull latest from Git
|
- name: Pull latest from Git
|
||||||
run: |
|
run: |
|
||||||
echo "Branch: ${{ gitea.head_ref }}"
|
echo "Branch: ${{ gitea.ref_name }}"
|
||||||
pwd
|
pwd
|
||||||
whoami
|
whoami
|
||||||
mkdir -p /var/lib/act_runner/
|
mkdir -p /var/lib/act_runner/
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
cd nodbot
|
cd nodbot
|
||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
git checkout ${{ gitea.head_ref }}
|
git checkout ${{ gitea.ref_name }}
|
||||||
git pull
|
git pull
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
||||||
const { config } = require('dotenv');
|
|
||||||
const fn = require('../functions.js');
|
|
||||||
const indexer = require('../CustomModules/Indexer.js');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
data: new SlashCommandBuilder()
|
|
||||||
.setName('gifs')
|
|
||||||
.setDescription('Get a list of currently saved GIFs.'),
|
|
||||||
execute(interaction) {
|
|
||||||
if (!interaction.client.gifs) {
|
|
||||||
interaction.reply('For some reason I don\'t have access to the collection of gifs. Sorry about that!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let iStorage = interaction.client.iStorage.get(interaction.id);
|
|
||||||
let indexedGifs = indexer(interaction.client.gifs, 0);
|
|
||||||
indexedGifs.gifsString = new String();
|
|
||||||
|
|
||||||
iStorage.page = 0;
|
|
||||||
|
|
||||||
for (const gif of indexedGifs.thisPage) {
|
|
||||||
indexedGifs.gifsString += `[${gif.name}.gif](${gif.url})\n`;
|
|
||||||
}
|
|
||||||
const commandData = {
|
|
||||||
command: "/gifs",
|
|
||||||
author: interaction.user.username
|
|
||||||
};
|
|
||||||
interaction.reply(fn.embeds.gifs(commandData, indexedGifs));
|
|
||||||
}
|
|
||||||
};
|
|
@ -1,29 +0,0 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
||||||
const fn = require('../functions.js');
|
|
||||||
const indexer = require('../CustomModules/Indexer.js');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
data: new SlashCommandBuilder()
|
|
||||||
.setName('joints')
|
|
||||||
.setDescription('Send a list of all the /joint phrases.'),
|
|
||||||
async execute(interaction) {
|
|
||||||
if (!interaction.client.joints) {
|
|
||||||
interaction.reply('For some reason I don\'t have access to the collection of joints. Sorry about that!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let iStorage = interaction.client.iStorage.get(interaction.id);
|
|
||||||
let indexedJoints = indexer(interaction.client.joints, 0);
|
|
||||||
indexedJoints.jointsString = new String();
|
|
||||||
|
|
||||||
iStorage.page = 0;
|
|
||||||
|
|
||||||
for (const joint of indexedJoints.thisPage) {
|
|
||||||
indexedJoints.jointsString += `${joint.content}\n`;
|
|
||||||
}
|
|
||||||
const commandData = {
|
|
||||||
command: "/joints",
|
|
||||||
author: interaction.user.username
|
|
||||||
};
|
|
||||||
interaction.reply(fn.embeds.joints(commandData, indexedJoints));
|
|
||||||
},
|
|
||||||
};
|
|
@ -1,30 +0,0 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
||||||
const { config } = require('dotenv');
|
|
||||||
const fn = require('../functions.js');
|
|
||||||
const indexer = require('../CustomModules/Indexer.js');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
data: new SlashCommandBuilder()
|
|
||||||
.setName('pastas')
|
|
||||||
.setDescription('Get a list of currently saved copypastas.'),
|
|
||||||
async execute(interaction) {
|
|
||||||
if (!interaction.client.pastas) {
|
|
||||||
interaction.reply({ content: 'For some reason I don\'t have access to the collection of copypastas. Sorry about that!', ephemeral: true });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let iStorage = interaction.client.iStorage.get(interaction.id);
|
|
||||||
let indexedPastas = indexer(interaction.client.pastas, 0);
|
|
||||||
indexedPastas.pastasString = new String();
|
|
||||||
|
|
||||||
iStorage.page = 0;
|
|
||||||
|
|
||||||
for (const pasta of indexedPastas.thisPage) {
|
|
||||||
indexedPastas.pastasString += `${pasta.name}.pasta\n`;
|
|
||||||
}
|
|
||||||
const commandData = {
|
|
||||||
command: "/pastas",
|
|
||||||
author: interaction.user.username
|
|
||||||
};
|
|
||||||
interaction.reply(fn.embeds.pastas(commandData, indexedPastas));
|
|
||||||
},
|
|
||||||
};
|
|
@ -1,31 +0,0 @@
|
|||||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
||||||
const { config } = require('dotenv');
|
|
||||||
const fn = require('../functions.js');
|
|
||||||
const indexer = require('../CustomModules/Indexer.js');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
data: new SlashCommandBuilder()
|
|
||||||
.setName('requests')
|
|
||||||
.setDescription('Get a list of Active requests from the database'),
|
|
||||||
async execute(interaction) {
|
|
||||||
if (!interaction.client.requests) {
|
|
||||||
interaction.reply('For some reason I don\'t have access to the collection of requests. Sorry about that!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let iStorage = interaction.client.iStorage.get(interaction.id);
|
|
||||||
let indexedRequests = indexer(interaction.client.requests, 0);
|
|
||||||
indexedRequests.requestsString = new String();
|
|
||||||
|
|
||||||
iStorage.page = 0;
|
|
||||||
|
|
||||||
for (const request of indexedRequests.thisPage) {
|
|
||||||
indexedRequests.requestsString += `[${request.id}]: ${request.request} (submitted by ${request.author})\n`;
|
|
||||||
}
|
|
||||||
|
|
||||||
const commandData = {
|
|
||||||
command: "/requests",
|
|
||||||
author: interaction.user.username
|
|
||||||
};
|
|
||||||
interaction.reply(fn.embeds.requests(commandData, indexedRequests));
|
|
||||||
},
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user