Skip to main content

CodeFactor

Music-bot

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

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

import miraculous

miraculous.login("bot token")

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

Errors?

Please ensure you have all module by do

pip install -r requirements.txt

And check your token is not exposed if it is it may lead to this message

python3 main.py
Removing cache dir /home/runner/.cache/youtube-dl ..
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'

Love!

Release files for miraculous 1

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
File Size Uploaded
miraculous-1.tar.gz 7.1 kB Details

Built distribution (wheel)

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

Total release size: 14.2 kB

Release files / miraculous-1.tar.gz

Download URL miraculous-1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fed2e4bfd0b31fbd7a0f220069ed82ba5f3ab55aed0e1b56eb947a9508589023
BLAKE2b-256 checksum
How to use checksums
5695124bb39e9b170e69e29d43141236c2b29dd18dbe1ae02965d94d9a619c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.10.0a7

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

Download URL miraculous-1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
888bb15f1b4432b6d032ec65376b2c3580fa02574eced3b0fa095f3c008ebd49
BLAKE2b-256 checksum
How to use checksums
65b18a6554569630440786bffe96398b8234472077554e1fb4dd3636dfde243d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.10.0a7

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

1.8.5

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

This release

1 This release

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