Coder Social home page Coder Social logo

pidginbot's Introduction

pidginBot

A bot built on top of pidgin/finch (Maybe other libpurple clients?) using the DBus interface. It can:

  • Send messages to and from chats across different (libpurple supported) chat protocols.
  • Perform commands.

It can run on any linux-based system that supports libpurple. The bot assumes you're using konsole. If you aren't, switch the terminalName variable to match the terminal you use.

Dependencies:

  1. Python 2.7/3.4+ (May run on older versions, not tested)
  2. PyGObject (pip install pygobject)
  3. PyDBus (pip install pydbus)
  4. humanize (pip install humanize)
  5. parsedatetime (pip install parsedatetime)
  6. youtube-dl (pip install youtube-dl)
  7. Finch (sudo apt install finch)

On debian, the command to install all of the dependencies is: sudo apt install finch && sudo pip install pygobject pydbus humanize parsedatetime youtube-dl --upgrade

How to use:

  1. Install all of the dependencies if they are not installed.
  2. Open finch.
  3. If you have not set up a bot account, do so now.
  4. Log into your bot account on finch.
  5. Run "runbot.sh"
  6. Profit!

The command delimiter is "!" by default, so commands can be run like "!help". Inputting a command that doesn't exist, such as "!commandThatDoesntExist" will print out a list of all valid commands.

More information on individual commands is available through "!help (commandname)" or in the helpText dictionary in the code.

pidginbot's People

Contributors

moomoomoo309 avatar

Stargazers

 avatar  avatar

Watchers

 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.