This file contains 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
! NEC Portable Internetwork Core Operating System Software | |
! IX Series IX3315 (magellan-sec) Software, Version 10.9.11, RELEASE SOFTWARE | |
! Compiled Dec 15-Fri-2023 13:25:17 JST #2 | |
! Last updated May 20-Mon-2024 03:25:54 JST | |
! | |
service ssl-protocol tls1.2-and-later | |
! | |
hostname HomeLab | |
timezone +09 00 |
This file contains 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 { Hono } from 'hono'; | |
import { InteractionType, InteractionResponseType } from 'discord-api-types/v9'; | |
// Function to convert a hex string to binary format | |
function hex2bin(hex: string): Uint8Array { | |
const buf = new Uint8Array(Math.ceil(hex.length / 2)); | |
for (let i = 0; i < buf.length; i++) { | |
buf[i] = parseInt(hex.substr(i * 2, 2), 16); | |
} | |
return buf; |