Git Product home page Git Product logo

Comments (7)

jlatt avatar jlatt commented on September 28, 2024

This should probably depend on SASL support (#6) so we can restrict logins to specific users.

from ergonomadic.

jlatt avatar jlatt commented on September 28, 2024

Ugh, sasl is a pain. I'm going to implement this with special command THEATER, which will work like OPER.

from ergonomadic.

jlatt avatar jlatt commented on September 28, 2024

I recommend following the operator config section:

[theater "name"]
password = <bcrypt>

from ergonomadic.

jlatt avatar jlatt commented on September 28, 2024

You may want to have THEATER use subcommands. e.g.

THEATER IDENTIFY <password>
THEATER PRIVMSG <as-nick> <channel> :<message>
THEATER NOTICE <as-nick> <channel> :<message>

/me is implemented using CTCP ACTION, so that's the message part of PRIVMSG and NOTICE.

We probably want to set a flag on the channel to indicate it's a theater (+T ) which references the nickname of the bot.

from ergonomadic.

edmund-huber avatar edmund-huber commented on September 28, 2024

I think it'd be better with <channel> first (and on IDENTIFY too):

THEATER IDENTIFY <channel> <password>
THEATER PRIVMSG <channel> <as-nick> :<message>
THEATER NOTICE <channel> <as-nick> :<message>

Here's how I'm thinking this will work:

  • on THEATER IDENTIFY: if right password for channel and mode T not set, create channel if necessary, set mode T with this nick, else error.
  • on THEATER {PRIVMSG,NOTICE}: if channel has mode T with this nick, do it, else error.

On nick QUIT or disconnect, unset mode T.

from ergonomadic.

edmund-huber avatar edmund-huber commented on September 28, 2024

Revised:

  • on THEATER IDENTIFY: if channel exists, correct password, and mode T is not set, set mode T with this user, else error.
  • on THEATER {PRIVMSG,NOTICE}: if channel exists and has mode T with this user, do it, else error.
  • on user QUIT or disconnect, unset mode T.

Main differences:

  • channel not created if it doesn't exist.
  • user instead of nick referenced in flag so that the user can change his nick without losing theater privs.

from ergonomadic.

edmund-huber avatar edmund-huber commented on September 28, 2024

Instead of THEATER NOTICE, THEATER ACTION.

from ergonomadic.

Related Issues (16)

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.