GithubHelp home page GithubHelp logo

kaitlek / discord-voicemessage-sender Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3 KB

Send a discord voice message with a file without the use of a mobile device.

Python 100.00%
discord voice-messages discord-voice-message voicemessages

discord-voicemessage-sender's Introduction

Discord Voice Message Sender

The Voice Message Sender is a Python library that allows you to send voice messages to a Discord channel using a provided user token and channel ID.

Installation

To use the Voice Message Sender files, follow these steps:

git clone https://github.com/kaitlek/discord-voicemessage-sender.git # or download the zip with the "Code" button above
cd discord-voicemessage-sender
pip install -r requirements.txt

Usage

  1. Create a file named main.py in your project directory.

  2. Import the VoiceMessageSender class from the voicemessages module and provide your Discord user token (Can be found by simply running the following in the devtools console), aswell as the channel id in which you want to send the voice message

(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()
  1. Use the SendVoiceMessage method to send a voice message to the specified Discord channel. Replace "D:\path\to\your\audio\file.mp3" with the path to the audio file you want to send.
from voicemessages import VoiceMessageSender

TOKEN = "your_token_here" # Replace with your token
CHANNEL_ID = 123  # Replace with your channel ID

voicemessage = VoiceMessageSender(TOKEN, CHANNEL_ID)
voicemessage.SendVoiceMessage("D:\path\to\your\audio\file.mp3")

Disclaimer

This library is provided as-is and may require additional setup or modifications based on your specific use case. Use it responsibly and in compliance with Discord's terms of service.

Feel free to modify the text and structure to fit your project's needs. Make sure to provide accurate instructions, replace placeholders with actual values, and provide any additional information that users might find helpful.

discord-voicemessage-sender's People

Contributors

kaitlek avatar

Stargazers

 avatar

Watchers

 avatar

discord-voicemessage-sender's Issues

Audio doesn't play on mobile!

Hey! Just as the title says, you can playback the audio file (voice messages) fine on a desktop but not on mobile. The audio doesn't seem to play on mobile. any ideas? help is much appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.