Jump to content
UBot Underground

Ubot For Fun Can Like This?


Recommended Posts

dont know if their is,someone does have a play sound plugin

 

if you just want a few sounds put them in the same folder as the bot

 

get the command line plugin(free and brilliant)

 

see below,that would work if the clip has no spaces.for files with spaces something different

 

start song.mp3

Link to post
Share on other sites

You will need the plugin

 

plugin command("Advanced Shell.dll""shell batch hidden""start wmplayer  \"c:\\windows\\media\\chimes.wav\"""Yes")

Link to post
Share on other sites

here ya go,

 

this won't run another program window like media player.

 

run python("import winsound
winsound.PlaySound(\"C:/Windows/Media/tada.wav\", winsound.SND_FILENAME)")
comment("https://docs.python.org/2/library/winsound.html")
run python("winsound.PlaySound(\"SystemExit\", winsound.SND_ALIAS)")

 

 

 

however, you will need dev edition or python plugin(python installed)

 

if you read the docs carefully it shouldn't be too hard to understand.

 

Play around for a bit too. What can it hurt.

 

This is not for a music player just to platy the sound files.

CD

 

edit:

and take special note to the file path
 

you can use replace func to replace \ with / or \\ will work

 

\\ the first \ is escaping the second here in python \ is splecial character

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...