Giter Site home page Giter Site logo

dpeta / randomencounter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 95 KB

A simple bot for IRC/Pesterchum servers to serve the same functionality as the original randomEncounter bot.

License: GNU General Public License v3.0

Python 100.00%
irc irc-bot pesterchum homestuck

randomencounter's Introduction

Pesterchum Random Encounters Bot

Random encounters for Pesterchum, now with asyncio :3c

Requires at least Python 3.10.

The Pesterchum client can only do random encounters if this bot or an equivalent bot is present on the connected IRC server.

Run with python3 randomEncounter.py or simply ./randomEncounter.

Run once to generate config/token file, hostname only needs to be included when using SSL.

Protocol

  • Responds to NOTICE ! with NOTICE !=randomUser , the notice is what Pesterchum uses to do random encounters. (Pesterchum user clicked "Random Encounter" )
  • Responds to NOTICE - with NOTICE -=k, the sender is excluded from further random encounters. (User turned off random encounters.)
  • Responds to NOTICE + with NOTICE +=k, the sender is removed from the exclude list if present. (User turned on random encounters.)
  • Responds to NOTICE ~ with NOTICE ~=k, the sender is excluded from further random encounters. (User is AFK.)
  • Responds to NOTICE + with NOTICE +=k, the sender is removed from the idle exclude list if present. (User is no longer AFK.)
  • Responds to all incoming PRIVMSG with a random user.
  • Responds to PRIVMSG #pesterchum GETMOOD randomEncounter with PRIVMSG #pesterchum MOOD >18.

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.