Tümü Yeni

user:thomas kullanıcı tarafından oluşturulan gistler

title:mygist belirtilen isme sahip gistler

description:sync gists with given description

filename:myfile.txt belirtilen isimde dosyaları olan gistler

extension:yml belirtilen uzantıya sahip dosyalara sahip gistler

language:go belirtilen dilde dosyaları olan gistler

topic:homelab Verilen konuyla ilgili gist'ler

all:systemctl search all fields

Kaydol

Giriş

Tümü Yeni Kaydol Giriş

nuno

Katıldı 4 months ago

Yakın zamanda oluşturuldu
En eski oluşturuldu
Yakın zamanda güncellendi
En eski güncellendi
Tüm gistler 582

nuno / set.ts

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 1 month ago
1 import { ChatInputCommandInteraction } from "discord.js";
2 import { Config } from "@systems/config";
3 import { resolveUser, hasOfficerRole } from "@systems/users";
4 import { Score } from "@systems/score";
5 import { detectSlot, normalizeSlot } from "@systems/scores";
6 import { getEffectiveCharacter } from "@systems/borrow";
7 import { replyAndDelete } from "@utils";
8 import { Emoji } from "@systems/emojis";
9 import { Discord } from "@discord";
10 import { User } from "@systems/users";

nuno / modals.ts

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 1 month ago
1 import {
2 ModalSubmitInteraction,
3 ModalBuilder,
4 TextInputBuilder,
5 TextInputStyle,
6 ActionRowBuilder,
7 } from "discord.js";
8 import { resolveUser } from "@systems/users";
9 import { getEffectiveCharacter } from "@systems/borrow";
10 import { score } from "@subcommands/score/submitCore";

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 "dey",
2 "zephyr"
3 ],
4 "2026-06-15-20": [],
5 "2026-06-16-20": [],
6 "2026-06-17-20": [],
7 "2026-06-18-20": [],
8 "2026-06-19-20": [],
9 "2026-06-20-20": [],
10 "2026-06-21-20": [

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 import { ChatInputCommandInteraction } from "discord.js";
2 import { Config } 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 { Emoji } from "@systems/emojis";
8 import { Discord } from "@discord";
9 import { User } from "@systems/users";
10 import { Logger } from "@systems/logger";

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 /**
2 * Submit a score for a character.
3 * Handles W.Rank snapshot at submission time.
4 */
5 async submit({ character, borrowedFrom, pts, k, d, atk, def, heal, slot, submittedByOfficer }: {
6 character: Character;
7 borrowedFrom?: UserKey;
8 pts: number;
9 k?: number;
10 d?: number;

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 function formatRow(
2 row: ResultRow,
3 context: NationContext,
4 allNames: string[],
5 allScores: string[],
6 allKds: string[],
7 allAtks: string[],
8 allDefs: string[]
9 ): string {
10 const char = row.character;

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 function buildRows(historyKey: TGKey): ResultRow[] {
2 const { slot, date } = TGKey.parse(historyKey);
3 let players: UserKey[] = Attendance.players(historyKey);
4
5 if (players.length === 0) {
6 const history = Store.read<{ scores: TGScore[] }>(TGKey.toHistoryPath(historyKey));
7 if (history?.scores) {
8 players = [...new Set(history.scores.map((s: TGScore) => s.playedBy ?? s.userKey))];
9 }
10 }

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 import fs from "fs";
2 import path from "path";
3 import { TGResult, TGScore, Nation } from "../types";
4 import { Nations } from "@systems/nations";
5 import { Store } from "@systems/store";
6 import { Paths } from "@helpers/paths";
7 import { TGKey } from "@systems/tg-key";
8 import { Logger } from "@systems/logger";
9 const log = Logger.for("upsert-score");

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 {
2 "scores": [
3 {
4 "userKey": "dey",
5 "characterName": "«Deystroyer»",
6 "nation": "Capella",
7 "pts": 2000,
8 "k": 2,
9 "d": 2,
10 "submittedAt": "2026-06-21T16:53:31.248Z",

nuno / gistfile1.txt

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 2 months ago
1 import { ChatInputCommandInteraction } from "discord.js";
2 import { Config } 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 { Emoji } from "@systems/emojis";
8 import { Discord } from "@discord";
9 import { User } from "@systems/users";
Daha yeni Daha eski

Opengist tarafından desteklenmektedir ⋅ Load: 94ms⋅

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