Giter VIP home page Giter VIP logo

theb0t's Introduction

###Logging IRC bot, based on: Twisted IRC Log Bot


####To Run:

Setup bot configuration in config.py

The file has a Config class and three subclasses. You may select any of the subclasses as needed, and update the bot's attributes section of it, plus any other config values you wish to change.

Modify run.py and change 'default' in config = config_modes.get(os.getenv('LOGBOT_CONFIG', 'default'))() to your desired config mode, which should be one of:

  • 'default'
  • 'dev'
  • 'test'
  • 'deploy'

Or define environment variable:

$ export LOGBOT_CONFIG=FOO  # where FOO is one of  the above modes

Install dependencies with:

$ pip install -r requirements.txt

Now run the bot with:

$ python run.py

You can send the following commands to the bot in a PM:

Command Description Channel Who
.help List all the commands PM/Channel Any user
! Queue yourself to ask a question during a session Channel Any user
!! Remove yourself from question queue during a session Channel Any user
!- Remove yourself from question queue during a session Channel Any user
.givemelogs Give you an fpaste link with the latest log PM Any user
.clearqueue Clear the question queue Channel Admin
.showqueue Show the status of the question queue PM/Channel Admin
.next Ping the next person in the queue to ask their question Channel Admin
.masters Show the list of all the masters (admins) PM Admin
.add [nick] Add nick to masters list PM/Channel Admin
.rm [nick] Remove nick from masters list PM/Channel Admin
.startclass [topic] Start logging a class; Append optional topic to channel topic PM Admin
.endclass Stop logging a class PM Admin
.pingall [message] Ping present channel members with message PM/Channel Admin
.link [resource] Show the URL of requested resource PM/Channel Any user

theb0t's People

Contributors

curiouslearner avatar farhaanbukhsh avatar kushaldas avatar rahuldecoded avatar sayanchowdhury avatar takwas 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.