Giter VIP home page Giter VIP logo

source's Introduction

basicBot

Contact

Slack Facebook group Twitter

Email enquiries: hi[at]benzi[dot]io

Usage

Bookmark the following code. To run the bot, click the bookmark.

javascript:(function(){$.getScript('https://raw.githack.com/basicBot/source/master/basicBot.js');})();

If this does not work, go to basicBot.js and copy paste its content into your console (accessible in chrome by pressing F12) when on plug.dj in your community.

Commands

These can be found in the commands list.

Blacklists

Examples of blacklists can be found in the customization repository. You can add blacklists in the settings of the bot via the methods given in that same repository. See below for more information.

Extending functionality and custom default settings

basicBot can be customized to fit your needs. Please refer to the customization repository for more info. Please do not try to if you are not confident in your JavaScript capabilities.

Credits

Developers
Benzi
Benzi

Special thanks ✨

  • Fungus: His Tastybot has been a source of inspiration for most of the features, and his help with coding problems has been invaluable to make this bot.
  • TAT, Origin and other Litebot contributors: Their Litebot has inspired features like Roulette.
  • Henchman: Never knew this undertaking would give me a friend too.

Translations 🌐

I would like to thank everyone who have contributed in translating the bot via Transifex 🙏

Translator Languages
3GoneS Lithuanian
ajdin291 Serbian
Bart Boom Dutch
cirktv Dutch
clone287 Turkish
DivinityRSPS German
Filly French
Gradure Dutch
H0LYbear Turkish
hadi555 German
Hasztagg Polish
Helvijs Baumanis Latvian
Inga Deveiko Latvian
Janis Petrovskis Latvian
Leopard105 Czech
linusworld Chinese (Taiwan)
Liutauras Vaitkus Lithuanian
Łukasz Strzałek Polish
Mikey Wazowsky Polish
Motel Bible Portuguese
NDA French
Patrick H-Hansen Danish
Rie Danish
Schokin Spanish
Shone Serbian
smt287 Turkish
Tessi Tess Randysková Czech
TIGJERUX Latvian
xMaxist Dutch
Yenn Chinese (Taiwan), Malay
Јовев Немања Serbian

License

Copyright © 2014-2018 basicBot

Modifications (including forks) of the code to fit personal needs are allowed only for personal use and should refer back to the original source. This software is not for profit, any extension, or unauthorised person providing this software is not authorised to be in a position of any monetary gain from this use of this software. Any and all money gained under the use of the software (which includes donations) must be passed on to the original author.

Disclaimer

This bot is developed independently. Changes may be made without notice. There is no guarantee for the bot to be functioning perfectly. plug.dj admins have the right to request changes. By using this chatbot you agree to not use it for violating plug.dj's Terms of Service. You also agree not to alter the bot's code, unless in the cases explicitly stated above, for personal use, or for the sole purpose of submitting a pull request with a bug fix or a feature update, at which point it will be looked at and decided by the authors of the project. Please refer to the original author/repository at all times, even on personal forks that are not private. Any requests for changes can be requested via email, through GitHub or via plug.dj.

source's People

Contributors

benchmaker avatar benzi avatar itzlevvie avatar maayan547 avatar moondye7 avatar motelbible avatar nuvm avatar pajlada avatar samhmills avatar servepeak avatar thedark1337 avatar wibla avatar wouterg avatar yemasthui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

source's Issues

AFK Check

When user leaves the room and comes back before they are hit for afk check it doesnt tag them for being AFK and then remove them

Randomly removing people from waitlist

Bot seems to be randomly removing people from the wailist, no afk warning message or anything. It seems to just be doing it with a specific set of people, anyone else bumped into this problem?

Woot/Grab/Meh Calculate to skip

Not sure why this isn't coded into Plug.dj itself, but I would like for a way to be able to do a command that will skip songs once they reach a certain number of meh's: Example
!meh 10
[@Exuviax] I will now skip songs when they receive a total of 10 down-votes.

Then the bot will do math on each song, it will take the total number of Meh's and total number of Woot's and minus the Woot's from the meh's to get the total down-votes.

Say a song has 10 meh's and 7 woot's, in reality, the song has 3 down-votes (After calculation)

Now, since I set the bot to skip the song at a total of 10 down-votes, and this song in question only has 3 after some simple math, it won't skip.

Well now the song had 32 meh's and 22 woot's, well 32 - 22 = 10 total Down-votes and now it's skipped.

I have been looking into adding it myself, but I am not super good with JS.

!refresh

Command !refresh not working.

!DC abuse

When a user uses !DC after it seems leaving the room for around maybe 15s but less than 30s and return it places them at #1 spot even if they were not there.

!dc queue sometimes "forgets" people, or just doesn't move them.

hihi.
When the waitlist is full, if someone tries to use !dc they're added to the bots queue.
sometimes, if it takes too long for a spot to free up, the user will be completely forgotten and they'll have to type !dc again to be re-added.
This also happens if the winner of !roulette wasn't in waitlist.

Also, Often, mostly again when the waitlist is full, if a user uses !dc or wins roulette (again without being in waitlist already) the bot will add them to the waitlist but not move them to their position, and they'll have to type !dc again (or have staff move them in the roulette situation)

example:

eg1
eg2

Where is API.getUser defined?

I'd like to use plug.dj API from an app in the browser.
I'd love to var api = require('basicBot'); and use it.

I'm building that, help would be appreciated :-)

Chat on slow mode

I think that sometimes when you run the bot the chat turns on slow mode. Is this a bug?

When I type some command, this appears in the chat --The chat is on slow mode. Try again on 9 seconds--

Chat reference error

Chat.timelimit has to become basicBot.chat.timelimit in the advance event handler line 756

!status seems to not be working

also minor problem since the new update: when you type a command for the bot (such as !ping) it deletes the command and any of your text that is recent (since the new update deletes in chunks instead of individual messages).

If Wait-List empty, song stats & autowoot don't work

I've done a small research and it could be because the bot looks for the ID of the users in the wait-list but since it's empty, it "cannot read property 'id' of undefined" at line 951 in the eventDjAdvance function.

It may be fixed by looking for typeof obj !== 'undefined' before doing any work on it.

Small edit.

"voteratio": "/me [@%%NAME%%] @%%USERNAME%% ~ woots: ' + %%WOOT%% + ', mehs: %%MEHS%%, ratio (w/m): %%RATIO%%.",

Doesn't need ' + and + ' for the %%WOOT%% :)

[Bug] Welcome Users Firefox

Using your latest update, the bot no longer welcomes users if it is run via firefox. This works in previous updates but not this one.
Thanks,

[Firefox] Syntax error when code is entered into the console

When you use
javascript:(function(){$.getScript('https://rawgit.com/Yemasthui/basicBot-customization/master/extension.js');})(); in Firefox, it returns a SyntaxError: missing ] in index expression

This also happens when you do alternative and post the raw code from https://rawgit.com/Yemasthui/basicBot-customization/master/extension.js

add custom command

If i add command like this , will it run? I ask this question because when i run this command, nothing happen
image

chat messages dissapearing

On chrome (latest version) after a manager gives some command to the bot, it deletes the previous message on the chat (see image)

image

Suggestion involving !skip

Whenever wait list is full it locks it then skips... blaah blah blah.

Wouldn't it be a better idea to, put djcycle on > skip song > move dj > put djcycle off?

BlackList

How does the blacklist work exactly, and how would I add things to it locally + Remove things from it.

I don't really understand how to phraze the Json, say I want to BL this song
https://www.youtube.com/watch?v=qPG9ijzWVV4

How would it look?

Also, say I BL a song in chat. How do I remove it?

Few languages and shorter commands.

So, i can translate into 2 more languages [Swedish, Lithuanian]. I did try to play around with your codes and thought that why not to make shorter commands. Like !clearchat into !clear or !cc.

!gif dont work

When I type "!gif" I can see the tag in chat, it disappears and the gif never comes.

Suggestion

Could you maybe add an !event command. You can choose what features it will disable and it will post a message in chat saying a event in starting. You could also add !eventinfo so they can get information about the event.
Thanks.

Copyright And Disclaimer very conflicting

The Copyright & License say "Modifications (including forks) of the code to fit personal needs are allowed only for personal use and should refer back to the original source"

but then the disclaimer says "You also agree not to alter the bot's code. "

Please choose an existing open source License so your intentions are more clear. MIT or BSD are good options that are similar to the language described in your license.

Not an issue but suggestion.

I know that the !mute function would delete the users chat in the previous versions, but now that Plug.dj has an actual mute feature, why not have it set up like this now:

!mute 1 or 15 (Mutes the user for 15 minutes)
!mute 2 or 30 (Mutes the user for 30 minutes)
!mute 3 or 45 (Mutes the user for 45 minutes)

!unmute would obviously unmute the user.

Just a suggestion.

History Skip

The History Skip does not work. When there is a song that has been in the dj history it does not say anything or warn or skip. I do have the command on enable so i don't know why it does not work.

!gif

!gif seems to have stopped working for me, on multiple accounts and refreshing/restarting will not work.

You're license is confusing

"Any and all money gained under the use of the software (which includes donations) must be passed on to the original author."

That truly does not make sense.. Factoring YouTube's terms of service prohibit the user of making money from other peoples content, including making money for embedding dynamic videos (aka, Plug.dj's whole system) you'd be illegally earning money of Google's profits.. You could claim 'ignorance is bliss' but you wouldn't be protected by Section 512, Title 17 of the United States Code for DMCA, often called DMCA 512.. You're fully aware you're illegally profiting off Google's profit..

I'm not a lawyer, and I'd highly suggest asking your own lawyer..

DCMA 512:
http://www.law.cornell.edu/uscode/text/17/512
YouTube's Copyright info:
https://www.youtube.com/yt/copyright/en-GB/
YouTube Terms of Service:
https://www.youtube.com/t/terms

I'd hope you have your own lawyer, but, EFF is my personal recommendation:
https://www.eff.org/pages/legal-assistance

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.