Skip to content

Instantly share code, notes, and snippets.

View max-4-3's full-sized avatar
🌴
On vacation

Maximun max-4-3

🌴
On vacation
View GitHub Profile
@max-4-3
max-4-3 / main.py
Created March 31, 2025 21:07
Upload any ( i think ) audio file to discord as a voice-message
from fake_useragent import UserAgent # pip install fake-useragent or fake_useragent
from consts import TOKEN # Make a consts.py file in same dir and put your token there ( TOKEN = "YOUR TOKEN" )
import requests # pip install requests
import os, json, base64, subprocess # Comes pre installed
# User inputs
channel_id = int(input("Enter a Channel ID to send the message: "))
voice_uri = input("Enter the Audio File path: ").strip()