Все Новый

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

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

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

nuno / format.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 import { ClassKey, Nation, WRankEntry } from "@src/types";
2 import { getClassEmoji, getNationEmoji, getEmoji } from "@systems/emojis";
3
4 // ─── Individual formatters ────────────────────────────────────────────────────
5
6 export interface CharDisplayOptions {
7 emoji?: boolean; // show class emoji (default: true)
8 level?: boolean; // show level (default: true)
9 }

nuno / upload-emojis.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 /**
2 * Bulk emoji upload script
3 * Usage: npx ts-node scripts/upload-emojis.ts [emoji_dir]
4 *
5 * Distributes emojis across a pool of donor servers (round-robin by available capacity).
6 * Each emoji is unique across all servers — no duplicates.
7 * Automatically updates messages/emojis.json with the uploaded emoji IDs.
8 */
9
10 import { REST, Routes } from "discord.js";

nuno / interactions.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 import { Interaction, ChatInputCommandInteraction, ButtonInteraction, TextChannel, StringSelectMenuInteraction } from "discord.js";
2 import { handleButton, handleScoreSubmitButton } 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 / switch.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months 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 {
6 getEffectiveCharacter,
7 setSessionBorrow,
8 setPersistentPreference,
9 clearPersistentPreference,
10 clearSessionBorrowForUser,

nuno / schema.php

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 /**
2 * This is the model class for table "{{%building_type}}".
3 *
4 * @property int $id
5 * @property string|null $guid
6 * @property string $name
7 * @property int|null $public_use
8 * @property int|null $status
9 * @property int|null $record_status
10 * @property int|null $position

nuno / buttons.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 import {
2 ButtonInteraction,
3 StringSelectMenuBuilder,
4 StringSelectMenuOptionBuilder,
5 ActionRowBuilder,
6 TextChannel
7 } from "discord.js";
8 import { cfg } from "@systems/config";
9 import { pollReplyAndDelete } from "../utils";
10 import { resolveUser } from "@systems/users";

nuno / poll.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 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 "@src/types";
10 import { cfg } from "@systems/config";

nuno / inject.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 import { ChatInputCommandInteraction, TextChannel } from "discord.js";
2 import { cfg } from "../../systems/config";
3 import { polls, updatePollMessage } from "../../systems/poll";
4 import { getEffectiveCharacter } from "../../systems/borrow";
5 import { nowFormatted, resolveMessage } from "../../systems/messages";
6 import { replyAndDelete } from "../../utils";
7 import { VoteEntry } from "../../types";
8
9 export async function handleInject(interaction: ChatInputCommandInteraction): Promise<void> {
10 const userKey = interaction.options.getString("name", true);

nuno / format.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months ago
1 import { ClassKey, Nation } from "@src/types";
2 import { getClassEmoji, getNationEmoji, getEmoji } from "@systems/emojis";
3
4 // ─── Individual formatters ────────────────────────────────────────────────────
5
6 export interface CharDisplayOptions {
7 emoji?: boolean; // show class emoji (default: true)
8 level?: boolean; // show level (default: true)
9 }

nuno / poll.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 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 "@src/types";
10 import { cfg } from "@systems/config";
Новее Позже

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

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