Code Monkey home page Code Monkey logo

pinybot's Introduction

pinybot

"The true base for your Tinychat bot needs."

Github code GitHub license GitHub issues GitHub stars GitHub forks Github downloads

A Tinychat room helper forked and extended from nortxort's pinylib, featuring all the essential features to help kickstart a room on Tinychat.

If you like or found this useful i.e. practically or contextually, please do star the repository. We also happily accept any new features or interesting pull requests you would like to be included in the project.

If there is a bug you want to highlight or if you are plagued by any other aspect of the project, be sure to post an issue in the issues section.

Visit our homepage for general information.

All our releases can be found in the release section with the source code. Release information/order is within the release procedures file, found in the project folder.

Windows users also can optionally download an executable version of the program.


Requirements

Dependencies

Linux

Run this on a linux terminal:

pip2 install bs4 requests pysocks colorama pyamf
OR
pip install [module name]

Windows

Note: Windows users are encouraged to add Python to their environment paths; more information here.

The following Windows instructions assume you do not have Python27 set in your environment/system variables.

In order to install on windows, be sure to use command prompt:

C:\Python27\Scripts\pip2.exe install bs4 requests pysocks colorama pyamf

Modules and requirements information is stored within requirements.txt, found in the project folder.

Optional Dependencies

  • Wikipedia (for use with wikipedia searches)

Linux

pip2 install wikipedia

Windows

C:\Python27\Scripts\pip2 install wikipedia

Automatic dependencies via update script

An alternative to installing all the dependencies one by one or downloading the latest version of the bot from GitHub, is to simply start pinybot.py. Upon starting the file, the update script will commence and determine if you have the latest version of the bot and/or if you have the latest versions of the modules needed to run it.

If there were any modifications made to a new version of the bot, then the latest version will be downloaded to a new directory which will be placed in the project folder, where you can easily extract it and overwrite your local copy.

You can always disable this feature in the config.ini in the project folder.


File information

  • api (directory) - Contains scripts related to external features e.g. communicating with the Tinychat API.

  • files (directory) - Here resides all the bot generated files and the file handling script(s).

  • rtmp (directory) - The basic communications scripts reside here, and all other various low level functions to interact with the remote server.

  • config.ini (file) - All the pertinent configurations and settings for both the bot and core can be set in here.

  • pinybot.py (file) - The MAIN bot script itself. Running this will intiate a console connection to the room.

  • pinylib.py (file) - The CORE bot script which is a store for all the essential functions in order for a normal connection to be made to the server and allowing for low-level communications to be executed.

  • requirements.txt (file) - Contains the modules which are required in order for the bot to run wholly.

  • update.py (file) - Hosts the module updating (based on the requirements file) and bot version checking script to allow for you stay updated with any new changes made.

  • Other files:

    • ChangeLog.html (file) - Contains all the recent changes made to the project.
    • CREDITS (file) - The acknowledgements and credits to all those who helped with the bot.
    • CONTRIBUTING (file) - Simple introduction to contributing to this project in any shape or form.
    • RELEASE-PROCEDURE (file) - Outline as to how releases/updates to the repository will work.
    • LICENSE (file) - The MIT license for the project.
    • README.md (file) - This file.

Detailed information

All further information in regards to the functions/features of the bot can be found in the GitHub repository Wiki.


Run the bot!

There is very little you need to follow to run the bot normally, i.e. downloading and extracting the files and opening pinybot.py will start the bot.

However, if you would like to configure the various other settings, then feel free to. All custom settings/options are found in the default config.ini file.

Linux

python2 pinybot.py
OR
python pinybot.py

Create a Linux executable (optional)

chmod +x pinybot.py
./pinybot.py

Windows (assumes you are in the pinybot-master directory)

C:\Python27\python pinybot.py

If you have any trouble navigating command prompt within Windows, please refer to this beginner's guide to command prompt.

"How can I help?"

You can easily leave a comment or an issue regarding help to fix a bug, sort a pending issue, a suggestion or even joining the team to help with the project.

Interested running it remotely?

If you are interested in running the bot online (instead of locally), why not try the OpenShift dedicated pinybot repository.

It's almost configured to a 'click to setup and run' standard to save you time and effort in setting up the bot.

Please do tell us if you have issues with this, either by posting an issue here or on the dedicated repository.

pinybot's People

Contributors

autotonic avatar goelbiju avatar sean-james avatar technetium1 avatar

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.