Все Новый

user:thomas фрагментов создано пользователем

title:mygist фрагментов с указанным заголовком

description:sync gists with given description

filename:myfile.txt фрагменты содержащие файлы с указанным именем

extension:yml фрагменты, содержащие файлы с указанным расширением

language:go фрагменты, содержащие файлы с указанным языком

topic:homelab фрагменты с заданной темой

all:systemctl search all fields

Регистрация

Войти

Все Новый Регистрация Войти

nuno

Зарегистрирован 2 months ago

Свежие сверху по дате создания
Свежие снизу по дате создания
Свежие сверху по дате обновления
Свежие снизу по дате обновления
Все фрагменты 570

nuno / poll.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month 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 / interactions.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { Interaction, ChatInputCommandInteraction, ButtonInteraction, TextChannel } from "discord.js";
2 import { handleButton } from "@handlers/buttons";
3 import { handleTgCommand } from "@commands/tg";
4 import { handleTgConfigCommand } from "@commands/tgConfig";
5 import { handleBorrowAcceptButton } from "@subcommands/char/accept";
6 import { handleBorrowDeclineButton } from "@subcommands/char/decline";
7 import { handleConflictButton } from "@systems/conflict";
8 import { handleImpersonateButton } from "@subcommands/impersonate";
9 import { handleAutocomplete } from "@handlers/autocomplete";
10 import { setActiveCharacter, getCharacterByName, getCharacters } from "@systems/characters";

nuno / buttons.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { ButtonInteraction, TextChannel } from "discord.js";
2 import { cfg } from "@systems/config";
3 import { pollReplyAndDelete } from "../utils";
4 import { resolveUser } from "@systems/users";
5 import { resolveMessage, nowFormatted } from "@systems/messages";
6 import { resolveNation } from "@systems/nations";
7 import { polls, updatePollMessage, createVoteEntry, getPublicOverride, getEphemeralOverride } from "@systems/poll";
8 import { showConflictEmbed } from "@systems/conflict";
9 import { getCharacters } from "@systems/characters";
10 import { getImpersonation } from "@systems/impersonate";

nuno / interactions.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { Interaction, ChatInputCommandInteraction, ButtonInteraction } from "discord.js";
2 import { handleButton } from "@handlers/buttons";
3 import { handleTgCommand } from "@commands/tg";
4 import { handleTgConfigCommand } from "@commands/tgConfig";
5 import { handleBorrowAcceptButton } from "@subcommands/char/accept";
6 import { handleBorrowDeclineButton } from "@subcommands/char/decline";
7 import { handleConflictButton } from "@systems/conflict";
8 import { handleImpersonateButton } from "@subcommands/impersonate";
9 import { handleAutocomplete } from "@handlers/autocomplete";

nuno / autocomplete.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { AutocompleteInteraction } from "discord.js";
2 import { resolveUser } from "@systems/users";
3 import { getCharacters, getCharacterByName } from "@systems/characters";
4 import { getPersistentPreference, getSessionBorrow } from "@systems/borrow";
5 import { cfg } from "@systems/config";
6 import fs from "fs";
7 import path from "path";
8
9 // ─── Autocomplete subsets ─────────────────────────────────────────────────────

nuno / switch.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { ChatInputCommandInteraction, TextChannel } from "discord.js";
2 import { cfg } from "@systems/config";
3 import { resolveUser, hasOfficerRole } from "@systems/users";
4 import { setActiveCharacter, getActiveCharacter, getCharacterByName, getCharacters } from "@systems/characters";
5 import { getEffectiveCharacter } from "@systems/borrow";
6 import { setSessionBorrow, getSessionBorrow, setPersistentPreference, clearPersistentPreference } from "@systems/borrow";
7 import { polls, updatePollMessage } from "@systems/poll";
8 import { getClassEmoji } from "@systems/emojis";
9 import { replyAndDelete } from "@src/utils";
10 import { format } from "@format";

nuno / tg.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import {
2 ChatInputCommandInteraction,
3 SlashCommandBuilder,
4 REST,
5 Routes,
6 } from "discord.js";
7 import { cfg } from "../systems/config";
8 import { hasOfficerRole } from "../systems/users";
9
10 // Poll subcommands

nuno / conflcit.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import {
2 Client,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 EmbedBuilder,
7 ButtonInteraction,
8 TextChannel,
9 } from "discord.js";

nuno / wrank.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import fs from "fs";
2 import path from "path";
3 import { WRankData, WRankWeek, WRankEntry, Nation, ClassKey } from "../types";
4 import { cfg } from "./config";
5
6 const WRANK_PATH = path.join(__dirname, "../../data/wrank.json");
7 let _data: WRankData = {};
8
9 export function loadWRank(): void {
10 try { _data = JSON.parse(fs.readFileSync(WRANK_PATH, "utf8")); }

nuno / set.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 month ago
1 import { ChatInputCommandInteraction } from "discord.js";
2 import { cfg } from "@systems/config";
3 import { resolveUser, hasOfficerRole } from "@systems/users";
4 import { submitScore, detectSlot, normalizeSlot } from "@systems/scores";
5 import { getEffectiveCharacter } from "@systems/borrow";
6 import { replyAndDelete } from "@utils";
7 import { getEmoji } from "@systems/emojis";
8
9 export async function handleScoreSet(interaction: ChatInputCommandInteraction): Promise<void> {
10 const member = await interaction.guild!.members.fetch(interaction.user.id);
Новее Позже

Работает на Opengist ⋅ Load: 105ms⋅

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