This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| ping, | |
| type NewPingResult, | |
| type OldPingResult, | |
| } from "minecraft-protocol"; | |
| const MC_HOST = process.env.MINECRAFT_HOST ?? "mc.hypixel.net"; | |
| const MC_PORT = parseInt(process.env.MINECRAFT_PORT ?? "25565", 10); | |
| const DS_CHANNEL = process.env.DISCORD_CHANNEL!; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bun | |
| import fs from 'fs'; | |
| const args = [...process.argv].splice(2); | |
| let filter = (username: string) => true; | |
| if (args.length > 0) { | |
| filter = (username: string) => username.toLowerCase().startsWith(args[0].toLowerCase()); | |
| } |