Giter Site home page Giter Site logo

laamaj's Introduction

LAAMAJ

Python IRC Bot Project

Laamaj is a toy project to make an IRC bot to gain experience in python and mess around with related technologies.

Usage [/src/laamaj.py]

usage: laamaj.py [-h] [-t] [-c CONFIG]

Laamaj IRC Bot Grabber of links/pictures and hopefully shower of them

optional arguments:
  -h, --help            show this help message and exit
  -t, --test            Engage test mode (join EFNET #laamajtest)
  -c CONFIG, --config CONFIG
             Specify config file (default .../laamaj/config.cfg)

laamaj's People

Contributors

shwoop avatar djcm avatar

Stargazers

Sam Taylor avatar  avatar

Watchers

James Cloos avatar Sam Taylor avatar  avatar

Forkers

darkfunction

laamaj's Issues

unicode

lack of unicode was causing crashes when handling url's.

should be working as of 1053e19.

web portal

Create a web portal to server up the pictures and links that we're storing.

rest api

Set up a rest api as a chance to use flask and a stepping stone to a full web portal (without the need for ecmascript)

Fetched images filename bug

database.py has a bug where

localfilename = hashlib.md5(origfile).hexdigest() + ext[0]

should be

localfilename = hashlib.md5(origfile).hexdigest() + ext

so all locally stored files have been given extension of "."

470 files have the issue.

Multiprocessing

As the image url fetching functionality has the potential to fail/time out/take ages it would be better suited to worker processes.

The logic is currently in the database modules function for adding websites.

Should be pulled out to laamaj.

This would be a good time to split laamaj into some distinct processes.
Thinking of moving towards laamaj as a service, implementing json-rpc with subsequent instances querying the service then closing (drawing from bitcoind)

uml hack showing seperate processes and message sending capabilities:
http://yuml.me/aedfa1f7

PROVIDING THE DATE MUST BE DISCONTINUED IMMEDIATELY

STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT STOP IT

IT IS NOT FUNNY IT NEVER WAS

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.