promotional bannermobile promotional banner

Newsbot

Abandoned
Newsbot

Small Newsbot Mod to announce news in a specific channel.
Listens for "newsbot" in a specific channel.

Commands:
/newsbot editor - opens the Editor Window: Put each entry between ""
/newsbot status - shows a bit of status information

Output example: [Newsbot] - [time] [Raid1] [Raid2]
Editbox: "Raid1" "Raid2"

If you change your listener type from "Channel" (default) to "Raid", "Guild", "Party" or similar, make sure you relog or /console reloadui()
Switching to Guild would work like: /newsbot channel guild
It assumes you don't have any channel called guild (or party,raid ...), because it checks for the existance of the channel, if it does not exist it will use the channel name as a "special channel" like guild, raid ...
You should always be in the channel you're using, you might get a few errors if you're not in the channel and autonews is triggered.

Example:
You want a news: Molten Core, Sa. 10/15 2pm
You load up the editor with: /newsbot editor
and put "Molten Core, Sa. 10/15/ 2pm" into the editbox, the "" are important since the addon parses the string between the "" as one news.
Output in the channel would look like: [Newsbot]-[10/14/05 17:05:00]-[
Molten Core, Sa. 10/15 2pm].
You can add more news by adding more "<news>" in the editor.

2. Advanced Functionality
Newsbot_FormatStrings = {"","[ID]-[DATE]","[NEWS]",""};
Possible options are ID, DATE, CHANNEL, NEWLINE for every entry except for the third, only NEWS is allowed as a formatting option for third.

First entry is Intro (a message above the real news).
Second entry is Main (first part of a normal news).
Third entry is News (the actual formating of a news).
Fourth entry is Outro (a message below the real news).


3. Problems:
A few caveats with that system:
1. Intro,Main,Outro shouldn't be too long
2. Any individual News shouldn't be longer than 255 chars.

The Newsbot Team

profile avatar
  • 1
    Projects
  • 300
    Downloads

More from _ForgeUser43518

  • Yata project image

    Yata

    • 185.5K
    • Addons

    Shaman totem bar

    • 185.5K
    • November 17, 2011
    • Addons
    • +1
  • Yata project image

    Yata

    • 185.5K
    • Addons

    Shaman totem bar

    • 185.5K
    • November 17, 2011
    • Addons
    • +1