Giter Club home page Giter Club logo

se-parrotbot's Introduction

ParrotBot

Hi! I'm ParrotBot, and I'm being designed to cruise over the skies of Opensource.stackexchange.com, keeping an eye out, and helping my fellow friends perform tasks. Aside from that, you can find what makes me here!

Setup

Before you can use the bot, you need to install some dependencies such as ChatExchange and BeautifulSoup4. You can install them by running setup.sh.

You'll also need to rename ConfigTemplate.py to Config.py.

You will also need to add some required configuration data in Config.py. The comments in that file tell you which values you can add and how to add them.

Running

To run the bot, you have to use Python 2.7. When you run it, it will prompt you for necessary information that you have not provided in Config.py. If you wish to use a specific configuration, run the bot with the argument -c configuration_name. You can also use -s site_name, -r room_number, -e email_address and -p password. The last four items will always override data stored in a configuration, if set.

Logging

You can use logging on the bot. It is disabled by default, but you can enable it by un-commenting the self.setup_logging() line in Chatbot.py (in the main method).

Executing commands/posting messages using the command line

You can execute commands from the bot by providing input on the command line. $+command args will execute the command and post the result to the chat room, and $-command args will only post the result to the command line. If your input does not start with a $, the bot will post the given input to the chat room.

Commands in a chat room

Commands in a chat room are executed like >>command optional arguments. To get a list of all commands, run >>listcommands. To get help on a specific command, run >>help command.

se-parrotbot's People

Contributors

thomas-daniels avatar zizouz212 avatar

Stargazers

ArtOfCode avatar

Watchers

James Cloos avatar  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.