Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meowhal/osu-ahr
/ functions
Functions
617 in github.com/Meowhal/osu-ahr
⨍
Functions
617
◇
Types & classes
195
↓ 185 callers
Method
emulateMessage
(from: string, to: string, message: string)
src/dummies/DummyIrcClient.ts:76
↓ 163 callers
Method
on
(listener: Listener<T>)
src/libs/TypedEvent.ts:16
↓ 151 callers
Method
AddPlayersAsync
(names: string[] | number, client: DummyIrcClient)
src/tests/TestUtils.ts:26
↓ 140 callers
Method
GetOrMakePlayer
* 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 callers
Method
assertHost
(username: string, lobby: Lobby)
src/tests/TestUtils.ts:52
↓ 105 callers
Function
assertStateIs
(state: string, s: AutoHostSelector)
src/tests/AutoHostSelectorTest.ts:21
↓ 104 callers
Method
info
(interaction: GuildCommandInteraction)
src/discord/DiscordBot.ts:223
↓ 92 callers
Method
emit
(event: T)
src/libs/TypedEvent.ts:40
↓ 83 callers
Method
feedLine
(message: string)
src/parsers/StatParser.ts:52
↓ 80 callers
Method
delayAsync
(ms: number)
src/tests/TestUtils.ts:47
↓ 79 callers
Method
emulateChangeMapAsync
(delay: number = 0, mapid: number = 0)
src/dummies/DummyIrcClient.ts:145
↓ 77 callers
Method
emulateMatchAsync
(delay: number = 0, scores?: { name: string, score: number, passed: boolean }[])
src/dummies/DummyIrcClient.ts:160
↓ 71 callers
Function
prepareSelector
(logIrc = false)
src/tests/AutoHostSelectorTest.ts:16
↓ 70 callers
Method
SendMessage
(message: string)
src/Lobby.ts:323
↓ 68 callers
Method
match
(value: string)
src/Modes.ts:28
↓ 66 callers
Method
emulateMessageAsync
(from: string, to: string, message: string)
src/dummies/DummyIrcClient.ts:96
↓ 63 callers
Method
log
(msg: string, important: boolean)
src/plugins/WordCounter.ts:105
↓ 59 callers
Method
changeHostAsync
(name: string, lobby: Lobby)
src/tests/TestUtils.ts:68
↓ 56 callers
Method
convertOptions
()
src/plugins/LobbyKeeper.ts:79
↓ 54 callers
Method
addEvent
(type: EventType, user_id: number)
src/dummies/DummyHistoryFetcher.ts:52
↓ 52 callers
Method
emulateRemovePlayerAsync
(name: string)
src/dummies/DummyIrcClient.ts:129
↓ 45 callers
Method
checkJoin
(slot: number)
src/plugins/LobbyKeeper.ts:503
↓ 45 callers
Method
once
(listener: Listener<T>)
src/libs/TypedEvent.ts:23
↓ 44 callers
Method
setBeatmapProperties
(id: number, title: string, mode: PlayMode, total_length: number, difficulty_rating: number)
src/dummies/FakeBeatmapFetcher.ts:114
↓ 44 callers
Function
setup
(option?: MapCheckerUncheckedOption)
src/tests/MapCheckerTest.ts:20
↓ 43 callers
Function
makeBanchoResponse
(type: BanchoResponseType, ...params: any[])
src/parsers/CommandParser.ts:332
↓ 42 callers
Method
join
(channel: string, callback?: irc.handlers.IJoinChannel | undefined)
src/IIrcClient.ts:16
↓ 39 callers
Function
assertPeriod
(period: WordCounterPeriod, cpp: number, cppm: number, wpp: number, wppm: number)
src/tests/WordCounterTest.ts:22
↓ 36 callers
Method
setRole
(r: Roles)
src/Player.ts:37
↓ 34 callers
Method
includes
(player: Player)
src/plugins/AutoHostSelector.ts:51
↓ 33 callers
Method
emulateMpSettings
(testcase: MpSettingsCase)
src/dummies/DummyIrcClient.ts:217
↓ 33 callers
Function
escapeUserName
(name: string)
src/Player.ts:74
↓ 33 callers
Function
loadEnvConfigWithTypeHint
(category: string, hints: ConfigTypeHint[], env: { [key: string]: string | undefined })
src/TypedConfig.ts:86
↓ 32 callers
Method
emulateAddPlayerAsync
(name: string)
src/dummies/DummyIrcClient.ts:120
↓ 31 callers
Function
prepare
(timer_delay: number = 0, vote_delay: number = 0, logIrc: boolean = false)
src/tests/HostSkipperTest.ts:14
↓ 30 callers
Method
getBeatmap
* * @param id * @param mode * @param allowConvert * @returns * @throws FetchBeatmapError
src/webapi/BeatmapRepository.ts:144
↓ 29 callers
Method
destroy
()
src/Lobby.ts:164
↓ 29 callers
Method
from
(value: string, throwsIfFailed: boolean = false)
src/Modes.ts:189
↓ 27 callers
Method
addPlayer
(player: Player)
src/plugins/AutoHostSelector.ts:28
↓ 26 callers
Function
generateDefaultOptionTypeHint
(option: any)
src/TypedConfig.ts:68
↓ 24 callers
Function
PrepareLobbyWith3Players
()
src/tests/LobbyTest.ts:21
↓ 23 callers
Method
SetupLobbyAsync
(logging: boolean = false)
src/tests/TestUtils.ts:15
↓ 23 callers
Method
sendMessageAsOwner
(lobby: Lobby, message: string)
src/tests/TestUtils.ts:41
↓ 22 callers
Method
toString
()
src/plugins/VoteCounter.ts:69
↓ 21 callers
Method
getRegulationDescription
()
src/plugins/MapChecker.ts:160
↓ 20 callers
Method
update
(message: string, now: number)
src/plugins/WordCounter.ts:68
↓ 19 callers
Method
toString
()
src/parsers/StatParser.ts:22
↓ 18 callers
Method
DeferMessage
(message: string, tag: string, delayMs: number, resetTimer: boolean = false)
src/Lobby.ts:378
↓ 18 callers
Function
setupAsync
(option?: Partial<LobbyKeeperOption>)
src/tests/LobbyKeeperTest.ts:20
↓ 18 callers
Function
setupAsync
(rate: number = 0.75, min: number = 2)
src/tests/MatchStarterTest.ts:13
↓ 17 callers
Method
SendPluginMessage
* 他のプラグインにメッセージを送信する。 * @param type * @param args
src/plugins/LobbyPlugin.ts:25
↓ 17 callers
Method
SetStat
(stat: StatResult)
src/dummies/DummyIrcClient.ts:368
↓ 17 callers
Method
StopTimer
()
src/plugins/HostSkipper.ts:217
↓ 17 callers
Method
configMochaAsSilent
()
src/tests/TestUtils.ts:88
↓ 17 callers
Method
fetchHistory
* パラメータに沿ったヒストリーを取得する * 通信エラーの場合は例外が発生する * @param limit * @param before * @param after * @param matchId
src/webapi/HistoryFetcher.ts:13
↓ 17 callers
Function
getLogger
(category?: string | undefined)
src/Loggers.ts:28
↓ 16 callers
Method
SendMessageWithCoolTime
(message: string | (() => string), tag: string, cooltimeMs: number)
src/Lobby.ts:339
↓ 16 callers
Method
assertEventFire
* 時間内に指定したイベントが発生することを確認する * @param event 対象のイベント * @param cb イベント発生時に引数をチェックするためのコールバック関数。falseを返すと監視が継続される * @param timeout リジェクトまでのミリ秒時間
src/tests/TestUtils.ts:103
↓ 16 callers
Function
resolveSkipAsync
(lobby: Lobby, callback: (() => void) | null = null)
src/tests/HostSkipperTest.ts:31
↓ 16 callers
Method
say
(target: string, message: string)
src/IIrcClient.ts:18
↓ 14 callers
Method
RaiseReceivedChatCommand
(player: Player, message: string)
src/Lobby.ts:575
↓ 14 callers
Method
emulatePlayerFinishAsync
(username: string)
src/dummies/DummyIrcClient.ts:213
↓ 14 callers
Function
getConfig
(tag: string, option: Partial<T>, hints?: ConfigTypeHint[])
src/TypedConfig.ts:51
↓ 13 callers
Method
emulateChangeHost
(name: string)
src/dummies/DummyIrcClient.ts:227
↓ 13 callers
Function
setupAsync
(timerDelay: number = 10)
src/tests/MatchAborterTest.ts:13
↓ 12 callers
Method
MakeLobbyAsync
(title: string)
src/Lobby.ts:729
↓ 12 callers
Method
calcCurrentOrderAsID
* プレイヤーのホスト順を計算し、結果をIDで出力する。 * ヒストリーの新しい方から順番に解析していく。 * プレイヤーは参加時のイベントIDか自分がホストのときの試合開始時のイベントIDをageとして記録する * ageが若いプレイヤーほど早くホスト順が回ってくる。 *
src/webapi/HistoryRepository.ts:272
↓ 12 callers
Method
changeHost
* !mp host コマンドの発行 * 現在のキューの先頭をホストに任命 * すでに先頭がホストの場合は何もしない * 変更中から確定までの間にユーザーが抜ける可能性を考慮する必要がある * キューの先頭を末尾に
src/plugins/AutoHostSelector.ts:459
↓ 12 callers
Method
dispose
()
src/libs/TypedEvent.ts:8
↓ 11 callers
Method
GetPlayer
* Get a player object from username * Return null if the player has not been created yet * @param username
src/Lobby.ts:244
↓ 11 callers
Method
checkLeave
(slot: number)
src/plugins/LobbyKeeper.ts:529
↓ 11 callers
Method
fetch
* ヒストリーを取得する * 現在の未取得分の * すでに所得中の場合は、取得が完了するまで待ち、さらにクールタイム分待機したあとに次のタスクを実行する * @param isRewind 取得済み分の過去イベントを取得する場合はtrue,未来イベントを取得する場合はfalse
src/webapi/HistoryRepository.ts:114
↓ 11 callers
Method
updateToLatest
* 現在の最新イベントからサーバー上の最新イベントまで更新する。 * 初回実行時は100個のイベントが取得される。
src/webapi/HistoryRepository.ts:85
↓ 10 callers
Method
emulateChatAsync
(from: string, message: string)
src/dummies/DummyIrcClient.ts:115
↓ 9 callers
Method
accessApi
(url: string, config: any = {}, tryCount: number = 2)
src/webapi/WebApiClient.ts:207
↓ 9 callers
Method
assertEventNeverFire
* 時間内に指定したイベントが"発生しない"ことを確認する * @param event 対象のイベント * @param cb イベント発生時に引数をチェックするためのコールバック関数。falseを返すと監視が継続される * @param timeout イベント発生までの待ち時
src/tests/TestUtils.ts:127
↓ 9 callers
Method
checkMove
(fromSlot: number, toSlot: number)
src/plugins/LobbyKeeper.ts:536
↓ 9 callers
Function
setup
(periods = [{ symbol: 'a', duration_ms: 1000 }])
src/tests/WordCounterTest.ts:12
↓ 8 callers
Method
AbortMatch
()
src/Lobby.ts:317
↓ 8 callers
Method
Includes
(username: string)
src/Lobby.ts:254
↓ 8 callers
Method
LoadMpSettingsAsync
()
src/Lobby.ts:838
↓ 8 callers
Method
Reorder
* キューを指定した順番に並び替える * @param order
src/plugins/AutoHostSelector.ts:413
↓ 8 callers
Method
TransferHost
(user: Player)
src/Lobby.ts:295
↓ 8 callers
Method
addGameEvent
(member: number[], title?: string)
src/dummies/DummyHistoryFetcher.ts:65
↓ 8 callers
Function
buildJoinEventFetcher
(count: number)
src/tests/HistoryRepositryTest.ts:126
↓ 8 callers
Method
emulateBanchoResponse
(message: string)
src/dummies/DummyIrcClient.ts:111
↓ 8 callers
Method
fixLobbyModeAndSize
()
src/plugins/LobbyKeeper.ts:213
↓ 8 callers
Function
rejectSkipAsync
(lobby: Lobby, timeout: number)
src/tests/HostSkipperTest.ts:42
↓ 8 callers
Function
setupAsync
()
src/tests/AfkKickerTest.ts:13
↓ 7 callers
Method
CloseLobbyAsync
()
src/Lobby.ts:800
↓ 7 callers
Function
assertOptions
(astimer: AutoStartTimer, enabled: boolean, doClearHost: boolean, waitingTime: number)
src/tests/AutoStartTimerTest.ts:117
↓ 7 callers
Method
checkUnused
()
src/plugins/LobbyKeeper.ts:554
↓ 7 callers
Method
emulateMatchAndAbortAsync
(delay: number = 0, finishers: (number | string[]) = 0)
src/dummies/DummyIrcClient.ts:186
↓ 6 callers
Method
Clear
()
src/plugins/VoteCounter.ts:35
↓ 6 callers
Method
SkipTo
(username: string)
src/plugins/HostSkipper.ts:176
↓ 6 callers
Function
assertPc
(lobby: Lobby, total: number, inLobby: number, playing: number)
src/tests/LobbyTest.ts:382
↓ 6 callers
Method
close
(interaction: GuildCommandInteraction)
src/discord/DiscordBot.ts:273
↓ 6 callers
Method
configMochaVerbosely
()
src/tests/TestUtils.ts:79
↓ 6 callers
Method
is
(r: Roles)
src/Player.ts:19
↓ 6 callers
Function
prepare
(enabled: boolean = true, doClearHost: boolean = true, waitingTime: number = 60)
src/tests/AutoStartTimerTest.ts:13
next →
1–100 of 617, ranked by callers