Giter Club home page Giter Club logo

tunebot's Introduction

Tunebot

A friendly fork of several other bots (QBot, Pinychat), designed to assist Tinychat users and moderators.

Enjoying the bot? Donate:

Support requests are per payment, only.

Acknowledgements:

  • notnola
  • megaloler
  • qbot
  • Norm

* (Somebody else or a fix? Tell me.)


## Files

[Author's Note: Use your own extraneous modules, and patch into the bot. Updates will break the code.]

####tunebot.py

A patched-on module that runs the actual bot, that is responsive in the chat room.

####tinychat.py

The core module responsible for interacting with Tinychat, handling the room object, users objects, and messages.

####rtmp

Handles the RTMP connection and communication, using the AMF encoder/decoder module. This is a Python remake of the original C library.


**Requirements** [ _pip install NAME_ ]: - PyAMF https://pypi.python.org/pypi/PyAMF - PySocks https://github.com/Anorov/PySocks - requests http://www.python-requests.org/en/latest/
## Command Line Arguments

The tinychat core module accepts these:

  • room=ROOM [or tinychat*ROOM]

Optional:

  • nick=NICK
  • user=USER
  • pass=PASS
  • ready=0/1           (Say something, when ready in the room.)
  • interactive=0/1    (Whether running from console or remotely.)

The tunebot module adds these optional arguments:

  • bot=0/1          (Whether bot starts active in listening to user commands.)
  • greet=0/1       (A smart greeting algorithm.)
  • snap=0/1       (Autoban unknowns taking screenshots.)
  • private=0/1    (Autoban all unknowns on join.)

For example, run it with:
python tunebot.py room=MYROOM user=MYUSER pass=MYPASS nick=Tunebot settings=settings.txt


## Settings

In the bot's directory, the settings.txt file handles all the one-line instructions. Any SETTINGS[] override can be applied there. The lists links expect a link to a TXT file format. For example, do "Export as TXT" in Google Docs, and copy the download URL from your browser downloads window.

The top directory of the bot has a settings/ directory. In the code, the local (not online) instructions come from simple .txt files inside it.


tunebot's People

Contributors

phuein avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tunebot's Issues

Call to function privmsg failed

Got this strange error while connected in a room. It (the bot) doesn't join the room all the way properly.

[23.57.55][1][roomname] [{'code': u'NetConnection.Call.Failed', 'description': u'call to function privmsg failed', 'level': u'error'}]

Vote Ban/Kick (Feature)

I remember this from an older version notnola had created. It worked but had no type of protection from spamming from users that had no account. Now that Tinychat has implemented a one account per IP login method, this would actually work if the bot recognizes users with actual accounts.

Colors have now been discontinued, defaults to black for all users

Hi, thanks for creating Tunebot and making it open source! Its been amazingly helpful so far and is the best room helper out there.

Today, Tinychat has completely modified the way colors are displayed in the chat. There is currently no longer a way to change your text color, even for users with pro accounts. I also noticed the only color that actually shows up now is green which is in the username for those with pro accounts only.

So, my question is, since there are no colors besides the pro green usernames, is there a workaround to use the green username color? It really saddens me that they took the uniqueness out of the chat in favor for more strict color schemes. :(

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.