Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic Management #9

Open
edunham opened this issue Apr 7, 2015 · 0 comments
Open

Topic Management #9

edunham opened this issue Apr 7, 2015 · 0 comments

Comments

@edunham
Copy link
Member

edunham commented Apr 7, 2015

Moved from hamperbot/hamper#60


For channels where Hamper has permissions, it would be nice to use him to automate channel setting and modification. Since topics are often a rather long list of links and things separated by some symbol like :: or |, perhaps we could talk to it like a list:

--- | Topic for #osu-lug is: OSU 
          Linux Users Group :: lug.oregonstate.edu 
          updated! :: Meetings Tuesdays 6PM KEC1005 :: 
          see #osu-lug-admin for bureaucracy :: CHOVDA 
          from 11-1 on Fridays, come when you can make 
          it


!topic replace topic[1] our site is lug.oregonstate.edu

--- | Topic for #osu-lug is: OSU 
          Linux Users Group :: our site is lug.oregonstate.edu 
           :: Meetings Tuesdays 6PM KEC1005 :: 
          see #osu-lug-admin for bureaucracy :: CHOVDA 
          from 11-1 on Fridays, come when you can make 
          it

!topic add yay Linux!

--- | Topic for #osu-lug is: OSU 
          Linux Users Group :: our site is lug.oregonstate.edu 
           :: Meetings Tuesdays 6PM KEC1005 :: 
          see #osu-lug-admin for bureaucracy :: CHOVDA 
          from 11-1 on Fridays, come when you can make 
          it :: yay Linux!

This would tie in with the ACL system to determine who can do things to a given channel's topic.

Proposed flags for !topic:

  • replace
    • changes the thing at to
  • clear
    • Deletes the entire topic
  • set
    • Overwrites entire topic with
  • append
    • appends to end of topic, after a separator
  • delete
    • removes the thing at from the topic and deletes the extra separator

Clear doesn't sound that useful. Did you have a use case in mind for it?

Instead of !topic replace topic[1] foo, I think it should probably be !topic replace 1 foo. That is minor though.

Other thoughts: topics have a maximum size, both a hard technical limitation, and a soft human limitation (at some point it is just too long to read). What happens if you we go over those limits? Is there a maximum number of fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant