New #PS Bot

Discussion in 'Project Sanctuary [P'S]' started by Heretic, Dec 4, 2015.

  1. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    Hey there guys,

    Since yesterday we have a new bot running on our channel #PS.
    Its nick is PS - it's running 24x7 on a Debian server I have hosted on a US Datacenter.

    From now on, I'm in charge of coding and maintaining the bot to help our channel and players with a set of useful features.

    I'll use this topic as a version log to keep you up to date on the bot features, fixes and etc. :)

    - v0.1 (12/04/2015)

    - Bot is now running on #PS;
    - Bot is now channel operator (@PS);
    - As a channel operator, the bot is capable of maintaining control when no humans are there: flood control, adv control, badwords control, etc;
    - Added !8ball script for fun. Usage: !8ball <your question>;
    - Added !stats command that makes the bot announce the channel statistics page;
    - Added !seen command similar to the #Renaissance one. Usage: !seen <nick> - the bot will return last time he saw the person;

    - Peak System
    - Added the !peak command that makes the bot announce the channel user peak and when it happened;
    - The bot will broadcast new peaks as soon as they happen on the channel;

    - Forum Threads Broadcaster
    -- Added to the bot the ability to catch new threads from the UO:R Forum and broadcast them onto the channel;
    -- Example:
    [15:27:04] <@PS> New thread from Trading Post | Need to Buy, Sell, Trade or Advertise?!
    [15:27:06] <@PS> (1) WTB Cheap Fencing Slayers: http://uorforum.com/threads/wtb-cheap-fencing-slayers.14339/
    -- The bot will broadcast new threads from the following forums: Project Sanctuary, Renaissance Discussion, Era Discussion, The Salty Dog Tavern, Player Run Events and Trading Post.
    -- The interval between fetchs is set to 3 minutes and the bot will only broadcast new content;

    - Channel Statistics
    - Added to the bot the ability to log the channel and summarize all data into statistics;
    - The bot will read the log and refresh the page every 10 minutes;
    - The URL is: http://ps.lzm.me
    - The statistics feature the most active nicks with number of lines and random quotes, most active times, miscellaneous numbers, most used words, most referenced urls and latest topics.


    That's it for now. Please feel free to suggest features or anything you think would be helpful. :)
    Any doubts please feel free to ask.

    Cheers!
    Last edited: Dec 4, 2015
    Cherie, Azerothian, Bamilus and 8 others like this.
  2. Fullmetal

    Fullmetal Well-Known Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    May 1, 2013
    Messages:
    641
    Likes Received:
    269
  3. Laretheo

    Laretheo Active Member
    UO:R Donor

    Joined:
    Jan 9, 2015
    Messages:
    197
    Likes Received:
    121
    nice work heretic *thumbs up*
  4. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    - v0.2 (01/27/2016)

    Generic Nickname Protection

    - Added a script to kindly ask any user with a generic nickname (UOR_*) to identify themselves.
    - The protection is triggered once the user enters the channel or has his nick changed to UOR_*.
    - The bot (PS) will send a private message to the user asking to change it and giving instructions as seen here:

    [​IMG]

    - This is to avoid any misunderstandings and to keep more of a personal feeling to all our players.
    MikeK, Fullmetal and Ahirman like this.
  5. El Horno

    El Horno Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 4, 2014
    Messages:
    3,612
    Likes Received:
    4,899
    Awesome!
    Heretic likes this.
  6. Fullmetal

    Fullmetal Well-Known Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    May 1, 2013
    Messages:
    641
    Likes Received:
    269
    Very nice!
    Heretic likes this.
  7. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    - v0.3 (06/05/2015)

    - Added several commands to help on #PS;
    - Thanks very much to @Cosmo (Kanza on IRC) for putting all the content together so I could create the commands;
    - Please feel free to report to me any bugs or typos if they occur;
    - Also, please feel free to suggest a new !command + link to be added.

    List of commands included on this update:

    Skills:
    !alchemy
    !alchy
    !anatomy
    !animallore
    !taming
    !archery
    !armslore
    !begging
    !blacksmithy
    !smithy
    !bowcraft
    !fletching
    !camping
    !carpentry
    !carpy
    !cartography
    !carto
    !cooking
    !detect
    !discordance
    !disco
    !eval
    !fencing
    !fishing
    !forensic
    !healing
    !herding
    !hiding
    !inscription
    !itemid
    !lockpicking
    !lumberjacking
    !lumber
    !mace fighting
    !macing
    !magery
    !meditation
    !mining
    !musicmanship
    !music
    !parrying
    !peacemaking
    !peace
    !poisoning
    !provocation
    !provo
    !removetrap
    !resist
    !snooping
    !spiritspeak
    !spirit
    !stealing
    !stealth
    !swordsmanship
    !swords
    !tactics
    !tailoring
    !tasteid
    !tinkering
    !tracking
    !veterinary
    !vet
    !wrestling

    Various
    !guide - Link to all guides altogether
    !newbie - http://www.uorforum.com/threads/new-to-ultima-online-start-here.3182/
    !new - http://www.uorforum.com/threads/new-to-ultima-online-start-here.3182/
    !bodsystem - http://www.uorforum.com/threads/renaissance-blog-the-bulk-order-reward-review.568
    !bods - http://www.uorforum.com/threads/the-business-of-bulk-orders.16637/
    !razor - http://uorforum.com/threads/renaissance-guide-to-razor.3671/
    !compendium - Link to site compendium
    Cherie and Fungus like this.
  8. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    We've reached a new peak on our channel:

    peak40.JPG

    Always awesome to see PS thriving. Congrats all!
    Ahirman likes this.
  9. Azerothian

    Azerothian Well-Known Member
    UO:R Subscriber

    Joined:
    Oct 12, 2015
    Messages:
    1,147
    Likes Received:
    480
    What other commands work with the bot? I know about !seen, for example, but I can never remember how to ask the bot when someone last spoke who is obviously online.
  10. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    There's not a function for last spoke. You can see the person idle time by using the command /whois Nick Nick (yes, nick twice, e.g. /whois Azerothian Azerothian). Server will return informations about the person including their idle time, so you'll know how long the person has been idle a.k.a last spoke.

    All the other commands besides the new ones are on the first post.
    Last edited: Jun 26, 2016
    Azerothian likes this.
  11. Azerothian

    Azerothian Well-Known Member
    UO:R Subscriber

    Joined:
    Oct 12, 2015
    Messages:
    1,147
    Likes Received:
    480
    Okay thanks m8. I must be remembering a !spoke function from elsewhere.
    Heretic likes this.
  12. Azerothian

    Azerothian Well-Known Member
    UO:R Subscriber

    Joined:
    Oct 12, 2015
    Messages:
    1,147
    Likes Received:
    480
    /whois on the IRC client I use (LimeChat on OSX):

    [​IMG]
    Thanks for your help re-finding this thread @Delavego !
  13. Jupiter

    Jupiter Well-Known Member

    Joined:
    Jul 24, 2013
    Messages:
    2,258
    Likes Received:
    3,264
  14. Dr Satan

    Dr Satan Well-Known Member

    Joined:
    Apr 29, 2015
    Messages:
    1,890
    Likes Received:
    2,505
    I was assuming that the AI would be self aware at this point. Apparently you still have to issue commands.
    Azerothian likes this.
  15. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    On the next version the bot will recreate artificially a person that doesn't play anymore after studying all the content related to that person.

    Hah, who am I kidding. Just watching Black Mirror.
    Jupiter likes this.
  16. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    Due to another mass invite happening on the channel this night:
    spam.PNG

    A new anti-advertisement script was installed and tested as shown below:

    antiads.PNG

    Users spamming other channels or URLs are going to be banned for 30 minutes. This protection exempts ops and voices (@ and +).

    Let's see how it goes for the next days, I'm sure some tweaking will be needed. Please let me know.
    Azerothian, Vortex and Jupiter like this.
  17. Dr Satan

    Dr Satan Well-Known Member

    Joined:
    Apr 29, 2015
    Messages:
    1,890
    Likes Received:
    2,505
    Nice

    Only concern is how often people are referred to #uortrade and somewhat often #uor-rp

    "Uor_8181 you can, type /j #uortrade it's the trade channel for uor on irc"
    *Jupiter has been banned for 30 minutes for being a bad wizard*

    Haven't tested it yet, but *grabs popcorn*
    Jupiter likes this.
  18. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    Yeah, that's the known issue currently. I'm trying to find a similar script with option to set exemptions of urls (uorforum.com, uorenaissance.com) and channels (#uor, #uortrade, etc.)
    Azerothian likes this.
  19. Dr Satan

    Dr Satan Well-Known Member

    Joined:
    Apr 29, 2015
    Messages:
    1,890
    Likes Received:
    2,505
    Azerothian likes this.
  20. Heretic

    Heretic Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 19, 2014
    Messages:
    622
    Likes Received:
    638
    ROFL :D
    Well deserved!

    Already taking care of it.
    Dr Satan likes this.

Share This Page