Compare commits
No commits in common. "0381272d7dbbf93b8a84fcbcf00ce6e595cfa1d7" and "0e34a0a4bb4f20db956f993f4d98bfed6faba9a5" have entirely different histories.
0381272d7d
...
0e34a0a4bb
@ -2,8 +2,8 @@ name: NodBot PE Dockerization
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'v*-pe'
|
- 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.ref_name }}"
|
echo "Branch: ${{ gitea.head_ref }}"
|
||||||
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.ref_name }}
|
git checkout ${{ gitea.head_ref }}
|
||||||
- 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:
|
||||||
push:
|
pull_request:
|
||||||
tags:
|
branches:
|
||||||
- 'v*'
|
- main
|
||||||
|
|
||||||
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.ref_name }}"
|
echo "Branch: ${{ gitea.head_ref }}"
|
||||||
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.ref_name }}
|
git checkout ${{ gitea.head_ref }}
|
||||||
git pull
|
git pull
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
|
30
slash-commands/gifs.js.bak
Normal file
30
slash-commands/gifs.js.bak
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
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));
|
||||||
|
}
|
||||||
|
};
|
29
slash-commands/joints.js.bak
Normal file
29
slash-commands/joints.js.bak
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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));
|
||||||
|
},
|
||||||
|
};
|
30
slash-commands/pastas.js.bak
Normal file
30
slash-commands/pastas.js.bak
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
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));
|
||||||
|
},
|
||||||
|
};
|
31
slash-commands/requests.js.bak
Normal file
31
slash-commands/requests.js.bak
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
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