Code Monkey home page Code Monkey logo

sopel-karma's Introduction

sopel-karma

Sopel IRC bot plugin to modify and track user Karma. Intended for some interoperability with Limnoria's karma.

Setup

cd "~/.sopel/plugins/"
wget https://raw.githubusercontent.com/dowodenum/sopel-karma/main/karma.py

Usage

From any channel the bot is in, or via privmsg (adjust from . to your bot's configured prefix)...

load, wipekarma, and setkarma commands must be run by a bot admin (you):

<you> /msg bot .load karma
<you> test++
<bot> test's karma is now 1
<you> .karma test
<bot> Karma for "test" has been increased 1 times and decreased 0 times for a total karma of 1.
<you> .wipekarma test
<bot> you: Karma for test has been wiped.
<you> .setkarma test 69 33
<bot> you: Karma set - nick: test inc: 69 dec: 33
<you> .karma test
<bot> Karma for "test" has been increased 69 times and decreased 33 times for a total karma of 36.

Importing a database

In a private message to the Limnoria bot (and while identified with the bot as its owner):

!dump #channel import-me.dat

Then run (in bash, same directory as that .dat file - ~/supybot/data/ perhaps):

$ wget https://raw.githubusercontent.com/dowodenum/sopel-karma/main/parse.py
$ chmod +x ./parse.py
$ ./parse.py "import-me.dat" 5 > karma-list.txt

... where the quoted string is your database file and '5' is the increased-karma threshold you're filtering by (use 0 for everything). Note that this parse script will filter any entries which have spaces in them.

You will now have a list of commands to feed to the bot to effectively 'import' the Limnoria karma to Sopel's database. Time for spam!

sopel-karma's People

Contributors

dowodenum 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.