Skip to main content

CodeFactor Pypi Download Stats Documentation Status Totals lines of code Total of download of all releases All issues All solved issues All pull requests that's open All pull requests that merged License Version Made from Source So many fucking badge

Music-bot

Greeting! Welcome to my miraculous bot repository! Here's how to setup!

Compaitablity

Your python version should greater than 2.7 else some module with not support

Why in the fuck you give us source code.

Compaitability because I am using beta and made wheel file from this python version is not good

Setup process

  1. If you gonna host on your pc edit last line to be bot.run("token"). If you're gonna host on repl add .env file and add TO=token. If you're gonna to host with heroku I have file ready for you just edit config var to be KEY TO VALUE bot token
  2. Then fire it up it should show your bot name id and stuff Default prefix is "m." you can change at bot variable

But I just download this from pypi

Just use

from miraculous import login

login("bot token")

Or if you use enviroment variable

from miraculous import login
from os import getenv

login(getenv("your enviroment variable!"))

What I just fixed?

  • Not realtime volume changing
  • Loop don't work
  • Pausing and Resuming is not work
  • Changed how it play music without downloading

What I just don't fixed yet?

  • Sound doesn't change when looping

Errors?

Please ensure you have all module by do

pip install -r requirements.txt

And check your token is not none if you are using enviroment variable method

python yourscriptname.py
Removing cache dir /home/runner/.cache/youtube-dl ..
* Serving Flask app "miraculous" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
Loaded cog.globalchat!
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
Loaded cog.globalchat!
 * Serving Flask app "" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
Traceback (most recent call last):
  File "main.py", line 519, in <module>
    bot.run(os.getenv("TOr"))
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 723, in run
    return future.result()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 702, in runner
    await self.start(*args, **kwargs)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 665, in start
    await self.login(*args, bot=bot)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
AttributeError: 'NoneType' object has no attribute 'strip'

also check your token is not exposed

python main.py
Removing cache dir /home/runner/.cache/youtube-dl ..
 * Serving Flask app "miraculous" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
Loaded cog.globalchat!
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
Loaded cog.globalchat!
 * Serving Flask app "" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 293, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 247, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "main.py", line 584, in <module>
    bot.run("ksdajfhkhasdkfj")
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 718, in run
    return future.result()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 697, in runner
    await self.start(*args, **kwargs)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 660, in start
    await self.login(*args, bot=bot)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 509, in login
    await self.http.static_login(token.strip(), bot=bot)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 297, in static_login
    raise LoginFailure('Improper token has been passed.') from exc
discord.errors.LoginFailure: Improper token has been passed.

Links

Pypi Link (plz download) Github link Discord server Read The Docs

Love!

What I update in module today?

Added keyword arguments at login you can look up at Readme again also Added read the docs link!

lol

Metadata

Release files for miraculous 1.8.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miraculous 1.8.5
File Size Uploaded
miraculous-1.8.5.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for miraculous 1.8.5
File Interpreter ABI Platform
miraculous-1.8.5-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / miraculous-1.8.5.tar.gz

Download URL miraculous-1.8.5.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dad725ba86f2bf9796e746a3581da8f9a24e5903404e9fa4252fb774f8c1961a
BLAKE2b-256 checksum
How to use checksums
428efdb105927adaa370a3b3961f90acd743f43d2f2e1e8541721e316473c99d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / miraculous-1.8.5-py3-none-any.whl

Download URL miraculous-1.8.5-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6f48a643cb8ecd76ee8387e95c3875d9521461004c1d6294fffbe1e072de702
BLAKE2b-256 checksum
How to use checksums
67c5e7a4b592f0c64c09f233775c4cbe18b0925fcc14a4b216fa2a481c08a358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

1.8.9

1 release file

1.8.8

1 release file

1.8.7

1 release file

1.8.6

1 release file

This release

1.8.5 This release

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

1 release file

1.8

1 release file

1.7.9

1 release file

1.7.8

1 release file

1.7.7

1 release file

1.7.5

1 release file

1.7.4

2 release files

1.7.3

2 release files

1.7.2

1 release file

1.4

2 release files

1.3

1 release file

1.2

1 release file

1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page