All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 import { ChatInputCommandInteraction } from "discord.js";
2 import { cfg } from "../../systems/config";
3 import { resolveUser, hasOfficerRole } from "../../systems/users";
4 import { setActiveCharacter } from "../../systems/characters";
5 import { setSessionBorrow } from "../../systems/borrow";
6 import { replyAndDelete } from "../../utils";
7 import fs from "fs";
8 import path from "path";
9
10 const CHARS_PATH = path.join(__dirname, "../../../data/characters.json");

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 cmd.addSubcommandGroup((g) => g
2 .setName("char")
3 .setDescription("Character management")
4 .addSubcommand((s) => s.setName("add").setDescription("Add a character")
5 .addStringOption((o) => o.setName("char_name").setDescription("Character name").setRequired(true))
6 .addStringOption((o) => o.setName("class").setDescription("Class").setRequired(true)
7 .addChoices(
8 { name: "Blader (BL)", value: "BL" },
9 { name: "Force Blader (FB)", value: "FB" },
10 { name: "Force Shielder (FS)", value: "FS" },

nuno / poll.ts

0 likes
0 forks
1 files
Last active 5 months ago
1 import {
2 EmbedBuilder,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 TextChannel,
7 GuildMember,
8 } from "discord.js";
9 import { PollState, VoteEntry, Nation, TGSlot } from "../types";
10 import { cfg } from "./config";

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 import {
2 EmbedBuilder,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 TextChannel,
7 GuildMember,
8 } from "discord.js";
9 import { PollState, VoteEntry, Nation, TGSlot } from "../types";
10 import { cfg } from "./config";

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 Interaction error: DiscordAPIError[0]: 404: Not Found
2 at handleErrors (/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
3 at processTicksAndRejections (node:internal/process/task_queues:103:5)
4 at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:417:20)
5 at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:169:11)
6 at async _REST.request (/app/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
7 at async ChannelManager.fetch (/app/node_modules/discord.js/src/managers/ChannelManager.js:130:18)
8 at async handleStart (/app/src/subcommands/poll/start.ts:23:21)
9 at async Client.handleInteraction (/app/src/handlers/interactions.ts:15:45) {
10 requestBody: { files: undefined, json: undefined },

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@docker:/opt/docker/tg-bot-ts# docker exec tg-bot-ts npx ts-node src/index.ts --register
2 Logged in as The Arbiter#9050
3 Messages loaded — 8 user file(s).
4 /app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35
5 }
6 ^
7 ExpectedConstraintError: Invalid Array length
8 at Object.run (/app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35:1)
9 at /app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2
10 at Array.reduce (<anonymous>)

nuno / import.command.sh

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2 # commands/import.command.sh
3
4 function cmd::import::on_load() {
5 flag::register --file
6 flag::register --peer
7 flag::register --dry-run
8 flag::register --force
9 }

nuno / export.command.sh

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2 # commands/export.command.sh
3
4 function cmd::export::on_load() {
5 flag::register --peer
6 flag::register --identity
7 flag::register --all
8 flag::register --out
9 flag::register --conf-only
10 flag::register --meta-only

nuno / hosts.command.sh

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2 # hosts.command.sh — manage host/IP display name mappings
3
4 # ============================================
5 # Lifecycle
6 # ============================================
7
8 function cmd::hosts::on_load() {
9 flag::register --ip
10 flag::register --subnet

nuno / net.command.sh

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2
3 function cmd::net::on_load() {
4 flag::register --name
5 flag::register --ip
6 flag::register --port
7 flag::register --desc
8 flag::register --tag
9 flag::register --detailed
10 flag::register --force
Newer Older

Powered by Opengist ⋅ Load: 101ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ KrilHub