MCPcopy Create free account

hub / github.com/Meowhal/osu-ahr / functions

Functions617 in github.com/Meowhal/osu-ahr

↓ 185 callersMethodemulateMessage
(from: string, to: string, message: string)
src/dummies/DummyIrcClient.ts:76
↓ 163 callersMethodon
(listener: Listener<T>)
src/libs/TypedEvent.ts:16
↓ 151 callersMethodAddPlayersAsync
(names: string[] | number, client: DummyIrcClient)
src/tests/TestUtils.ts:26
↓ 140 callersMethodGetOrMakePlayer
* Get or create a player object from username * Player is a unique instance, so it is directly comparable * Player must not be created outside o
src/Lobby.ts:225
↓ 134 callersMethodassertHost
(username: string, lobby: Lobby)
src/tests/TestUtils.ts:52
↓ 105 callersFunctionassertStateIs
(state: string, s: AutoHostSelector)
src/tests/AutoHostSelectorTest.ts:21
↓ 104 callersMethodinfo
(interaction: GuildCommandInteraction)
src/discord/DiscordBot.ts:223
↓ 92 callersMethodemit
(event: T)
src/libs/TypedEvent.ts:40
↓ 83 callersMethodfeedLine
(message: string)
src/parsers/StatParser.ts:52
↓ 80 callersMethoddelayAsync
(ms: number)
src/tests/TestUtils.ts:47
↓ 79 callersMethodemulateChangeMapAsync
(delay: number = 0, mapid: number = 0)
src/dummies/DummyIrcClient.ts:145
↓ 77 callersMethodemulateMatchAsync
(delay: number = 0, scores?: { name: string, score: number, passed: boolean }[])
src/dummies/DummyIrcClient.ts:160
↓ 71 callersFunctionprepareSelector
(logIrc = false)
src/tests/AutoHostSelectorTest.ts:16
↓ 70 callersMethodSendMessage
(message: string)
src/Lobby.ts:323
↓ 68 callersMethodmatch
(value: string)
src/Modes.ts:28
↓ 66 callersMethodemulateMessageAsync
(from: string, to: string, message: string)
src/dummies/DummyIrcClient.ts:96
↓ 63 callersMethodlog
(msg: string, important: boolean)
src/plugins/WordCounter.ts:105
↓ 59 callersMethodchangeHostAsync
(name: string, lobby: Lobby)
src/tests/TestUtils.ts:68
↓ 56 callersMethodconvertOptions
()
src/plugins/LobbyKeeper.ts:79
↓ 54 callersMethodaddEvent
(type: EventType, user_id: number)
src/dummies/DummyHistoryFetcher.ts:52
↓ 52 callersMethodemulateRemovePlayerAsync
(name: string)
src/dummies/DummyIrcClient.ts:129
↓ 45 callersMethodcheckJoin
(slot: number)
src/plugins/LobbyKeeper.ts:503
↓ 45 callersMethodonce
(listener: Listener<T>)
src/libs/TypedEvent.ts:23
↓ 44 callersMethodsetBeatmapProperties
(id: number, title: string, mode: PlayMode, total_length: number, difficulty_rating: number)
src/dummies/FakeBeatmapFetcher.ts:114
↓ 44 callersFunctionsetup
(option?: MapCheckerUncheckedOption)
src/tests/MapCheckerTest.ts:20
↓ 43 callersFunctionmakeBanchoResponse
(type: BanchoResponseType, ...params: any[])
src/parsers/CommandParser.ts:332
↓ 42 callersMethodjoin
(channel: string, callback?: irc.handlers.IJoinChannel | undefined)
src/IIrcClient.ts:16
↓ 39 callersFunctionassertPeriod
(period: WordCounterPeriod, cpp: number, cppm: number, wpp: number, wppm: number)
src/tests/WordCounterTest.ts:22
↓ 36 callersMethodsetRole
(r: Roles)
src/Player.ts:37
↓ 34 callersMethodincludes
(player: Player)
src/plugins/AutoHostSelector.ts:51
↓ 33 callersMethodemulateMpSettings
(testcase: MpSettingsCase)
src/dummies/DummyIrcClient.ts:217
↓ 33 callersFunctionescapeUserName
(name: string)
src/Player.ts:74
↓ 33 callersFunctionloadEnvConfigWithTypeHint
(category: string, hints: ConfigTypeHint[], env: { [key: string]: string | undefined })
src/TypedConfig.ts:86
↓ 32 callersMethodemulateAddPlayerAsync
(name: string)
src/dummies/DummyIrcClient.ts:120
↓ 31 callersFunctionprepare
(timer_delay: number = 0, vote_delay: number = 0, logIrc: boolean = false)
src/tests/HostSkipperTest.ts:14
↓ 30 callersMethodgetBeatmap
* * @param id * @param mode * @param allowConvert * @returns * @throws FetchBeatmapError
src/webapi/BeatmapRepository.ts:144
↓ 29 callersMethoddestroy
()
src/Lobby.ts:164
↓ 29 callersMethodfrom
(value: string, throwsIfFailed: boolean = false)
src/Modes.ts:189
↓ 27 callersMethodaddPlayer
(player: Player)
src/plugins/AutoHostSelector.ts:28
↓ 26 callersFunctiongenerateDefaultOptionTypeHint
(option: any)
src/TypedConfig.ts:68
↓ 24 callersFunctionPrepareLobbyWith3Players
()
src/tests/LobbyTest.ts:21
↓ 23 callersMethodSetupLobbyAsync
(logging: boolean = false)
src/tests/TestUtils.ts:15
↓ 23 callersMethodsendMessageAsOwner
(lobby: Lobby, message: string)
src/tests/TestUtils.ts:41
↓ 22 callersMethodtoString
()
src/plugins/VoteCounter.ts:69
↓ 21 callersMethodgetRegulationDescription
()
src/plugins/MapChecker.ts:160
↓ 20 callersMethodupdate
(message: string, now: number)
src/plugins/WordCounter.ts:68
↓ 19 callersMethodtoString
()
src/parsers/StatParser.ts:22
↓ 18 callersMethodDeferMessage
(message: string, tag: string, delayMs: number, resetTimer: boolean = false)
src/Lobby.ts:378
↓ 18 callersFunctionsetupAsync
(option?: Partial<LobbyKeeperOption>)
src/tests/LobbyKeeperTest.ts:20
↓ 18 callersFunctionsetupAsync
(rate: number = 0.75, min: number = 2)
src/tests/MatchStarterTest.ts:13
↓ 17 callersMethodSendPluginMessage
* 他のプラグインにメッセージを送信する。 * @param type * @param args
src/plugins/LobbyPlugin.ts:25
↓ 17 callersMethodSetStat
(stat: StatResult)
src/dummies/DummyIrcClient.ts:368
↓ 17 callersMethodStopTimer
()
src/plugins/HostSkipper.ts:217
↓ 17 callersMethodconfigMochaAsSilent
()
src/tests/TestUtils.ts:88
↓ 17 callersMethodfetchHistory
* パラメータに沿ったヒストリーを取得する * 通信エラーの場合は例外が発生する * @param limit * @param before * @param after * @param matchId
src/webapi/HistoryFetcher.ts:13
↓ 17 callersFunctiongetLogger
(category?: string | undefined)
src/Loggers.ts:28
↓ 16 callersMethodSendMessageWithCoolTime
(message: string | (() => string), tag: string, cooltimeMs: number)
src/Lobby.ts:339
↓ 16 callersMethodassertEventFire
* 時間内に指定したイベントが発生することを確認する * @param event 対象のイベント * @param cb イベント発生時に引数をチェックするためのコールバック関数。falseを返すと監視が継続される * @param timeout リジェクトまでのミリ秒時間
src/tests/TestUtils.ts:103
↓ 16 callersFunctionresolveSkipAsync
(lobby: Lobby, callback: (() => void) | null = null)
src/tests/HostSkipperTest.ts:31
↓ 16 callersMethodsay
(target: string, message: string)
src/IIrcClient.ts:18
↓ 14 callersMethodRaiseReceivedChatCommand
(player: Player, message: string)
src/Lobby.ts:575
↓ 14 callersMethodemulatePlayerFinishAsync
(username: string)
src/dummies/DummyIrcClient.ts:213
↓ 14 callersFunctiongetConfig
(tag: string, option: Partial<T>, hints?: ConfigTypeHint[])
src/TypedConfig.ts:51
↓ 13 callersMethodemulateChangeHost
(name: string)
src/dummies/DummyIrcClient.ts:227
↓ 13 callersFunctionsetupAsync
(timerDelay: number = 10)
src/tests/MatchAborterTest.ts:13
↓ 12 callersMethodMakeLobbyAsync
(title: string)
src/Lobby.ts:729
↓ 12 callersMethodcalcCurrentOrderAsID
* プレイヤーのホスト順を計算し、結果をIDで出力する。 * ヒストリーの新しい方から順番に解析していく。 * プレイヤーは参加時のイベントIDか自分がホストのときの試合開始時のイベントIDをageとして記録する * ageが若いプレイヤーほど早くホスト順が回ってくる。 *
src/webapi/HistoryRepository.ts:272
↓ 12 callersMethodchangeHost
* !mp host コマンドの発行 * 現在のキューの先頭をホストに任命 * すでに先頭がホストの場合は何もしない * 変更中から確定までの間にユーザーが抜ける可能性を考慮する必要がある * キューの先頭を末尾に
src/plugins/AutoHostSelector.ts:459
↓ 12 callersMethoddispose
()
src/libs/TypedEvent.ts:8
↓ 11 callersMethodGetPlayer
* Get a player object from username * Return null if the player has not been created yet * @param username
src/Lobby.ts:244
↓ 11 callersMethodcheckLeave
(slot: number)
src/plugins/LobbyKeeper.ts:529
↓ 11 callersMethodfetch
* ヒストリーを取得する * 現在の未取得分の * すでに所得中の場合は、取得が完了するまで待ち、さらにクールタイム分待機したあとに次のタスクを実行する * @param isRewind 取得済み分の過去イベントを取得する場合はtrue,未来イベントを取得する場合はfalse
src/webapi/HistoryRepository.ts:114
↓ 11 callersMethodupdateToLatest
* 現在の最新イベントからサーバー上の最新イベントまで更新する。 * 初回実行時は100個のイベントが取得される。
src/webapi/HistoryRepository.ts:85
↓ 10 callersMethodemulateChatAsync
(from: string, message: string)
src/dummies/DummyIrcClient.ts:115
↓ 9 callersMethodaccessApi
(url: string, config: any = {}, tryCount: number = 2)
src/webapi/WebApiClient.ts:207
↓ 9 callersMethodassertEventNeverFire
* 時間内に指定したイベントが"発生しない"ことを確認する * @param event 対象のイベント * @param cb イベント発生時に引数をチェックするためのコールバック関数。falseを返すと監視が継続される * @param timeout イベント発生までの待ち時
src/tests/TestUtils.ts:127
↓ 9 callersMethodcheckMove
(fromSlot: number, toSlot: number)
src/plugins/LobbyKeeper.ts:536
↓ 9 callersFunctionsetup
(periods = [{ symbol: 'a', duration_ms: 1000 }])
src/tests/WordCounterTest.ts:12
↓ 8 callersMethodAbortMatch
()
src/Lobby.ts:317
↓ 8 callersMethodIncludes
(username: string)
src/Lobby.ts:254
↓ 8 callersMethodLoadMpSettingsAsync
()
src/Lobby.ts:838
↓ 8 callersMethodReorder
* キューを指定した順番に並び替える * @param order
src/plugins/AutoHostSelector.ts:413
↓ 8 callersMethodTransferHost
(user: Player)
src/Lobby.ts:295
↓ 8 callersMethodaddGameEvent
(member: number[], title?: string)
src/dummies/DummyHistoryFetcher.ts:65
↓ 8 callersFunctionbuildJoinEventFetcher
(count: number)
src/tests/HistoryRepositryTest.ts:126
↓ 8 callersMethodemulateBanchoResponse
(message: string)
src/dummies/DummyIrcClient.ts:111
↓ 8 callersMethodfixLobbyModeAndSize
()
src/plugins/LobbyKeeper.ts:213
↓ 8 callersFunctionrejectSkipAsync
(lobby: Lobby, timeout: number)
src/tests/HostSkipperTest.ts:42
↓ 8 callersFunctionsetupAsync
()
src/tests/AfkKickerTest.ts:13
↓ 7 callersMethodCloseLobbyAsync
()
src/Lobby.ts:800
↓ 7 callersFunctionassertOptions
(astimer: AutoStartTimer, enabled: boolean, doClearHost: boolean, waitingTime: number)
src/tests/AutoStartTimerTest.ts:117
↓ 7 callersMethodcheckUnused
()
src/plugins/LobbyKeeper.ts:554
↓ 7 callersMethodemulateMatchAndAbortAsync
(delay: number = 0, finishers: (number | string[]) = 0)
src/dummies/DummyIrcClient.ts:186
↓ 6 callersMethodClear
()
src/plugins/VoteCounter.ts:35
↓ 6 callersMethodSkipTo
(username: string)
src/plugins/HostSkipper.ts:176
↓ 6 callersFunctionassertPc
(lobby: Lobby, total: number, inLobby: number, playing: number)
src/tests/LobbyTest.ts:382
↓ 6 callersMethodclose
(interaction: GuildCommandInteraction)
src/discord/DiscordBot.ts:273
↓ 6 callersMethodconfigMochaVerbosely
()
src/tests/TestUtils.ts:79
↓ 6 callersMethodis
(r: Roles)
src/Player.ts:19
↓ 6 callersFunctionprepare
(enabled: boolean = true, doClearHost: boolean = true, waitingTime: number = 60)
src/tests/AutoStartTimerTest.ts:13
next →1–100 of 617, ranked by callers