Skip to content

Instantly share code, notes, and snippets.

View gatomod's full-sized avatar
🎋
sudo systemctl enable --now gatomod.service

Gátomo gatomod

🎋
sudo systemctl enable --now gatomod.service
View GitHub Profile
// Poll example Discord.js V14.15.1
import { PollData, PollLayoutType } from 'discord.js';
const poll: PollData = {
question: {
text: 'PHP is good?',
},
answers: [
{
@LautyDev
LautyDev / code.ts
Created April 14, 2024 19:26
How to know if a message is a poll (Discord)
message.activity === null &&
message.cleanContent === '' &&
message.roleSubscriptionData === null &&
message.components.length === 0 &&
message.system === false &&
message.webhookId === null &&
message.type === 0 &&
message.attachments.size === 0 &&
message.embeds.length === 0 &&
message.applicationId === null &&

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8