/* pubtab.h
 * (C) Peter Salanki 2002
 * This program is copyright, and covered by the Gnu Public License.
 * The Natasha bot.
 * sorcer@linux.se
 */

void p_me (char *a, struct arm *arm);
void p_date (char *a, struct arm *arm);
void p_tv (char *a, struct arm *arm);
void p_peak (char *a, struct arm *arm);
void p_vote (char *a, struct arm *arm);
void p_stats (char *a, struct arm *arm);
void p_netstat (char *a, struct arm *arm);

struct PubMsgtabEntry
  {
    char *msg;
    void (*func) (char *a, struct arm *arm);
    char *summary;
    char *help;
    int level;
  };

struct PubMsgtabEntry pubtab[] =
{
  {"ME", p_me, "Execute some of the commands to the bot using <botname> <command> instead of messaging the bot.", "%s <command> [values]\n", NORMAL},
  {"!date", p_date, "Shows current date and time.", "Shows current date and time, GMT +1. Requeries +infobot on the channel.\n", UNAUTHED},
  {"!tv", p_tv, "Check what is on Swedish TV at the moment.", "Shows current shows on Swedish TV. Needs +tv on the channel.\n", UNAUTHED},
  {"!peak", p_peak, "Check the channel peak.", "!peak - Needs +peak on the channel.\n", UNAUTHED},
  {"!vote", p_vote, "Channel voting command..", "!vote - Possible commands are: !vote start, !vote stop, !vote satus, !vote yes and !vote no. !vote start <time> <question> Time is given in minutes, ie: !vote start 10 Does this work?\n", UNAUTHED},
  {"!netstat", p_netstat, "Shows channels the bot doesen't have op or can't get in to.", "!netstat\n", TECHNICIAN},
  {"logs?", p_stats, "Get the address of the channel logs and stats.", "logs? stats? - Needs +stats on the channel.\n", UNAUTHED},
  {"stats?", p_stats, "Get the address of the channel logs and stats.", "logs? stats? - Needs +stats on the channel.\n", UNAUTHED},
  {"DONE", 0, "DONE", "DONE", 1000}
};
