collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: New module: Vote.php  (Read 2116 times)

0 Members and 1 Guest are viewing this topic.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
New module: Vote.php
« on: September 10, 2007, 03:22:05 pm »
I've started working on a new module to handle votes. I would like some feedback on any features I might have missed. Currently I've got
Code: [Select]
$this -> bot -> accesscontrol -> create ('tell', 'vote', 'MEMBER');
$this -> bot -> accesscontrol -> create ('gc', 'vote', 'MEMBER');

$this -> bot -> settings -> create('Vote', 'New', 'SUPERADMIN', 'Who should be able to start new votes', 'MEMBER;LEADER;ADMIN;SUPERADMIN');
$this -> bot -> settings -> create('Vote', 'Spam', 'No', 'Should players who haven\'t voted be spammed when logging on', 'No;Yes');

$this -> help['description'] = 'This module enables the guild to arrange votes.';
$this -> help['command']['vote']="- Shows the vote interface";
$this -> help['command']['vote new <description>'] = "- Adds adds a new vote about <description>";
$this -> help['command']['vote restrict <min_level>'] = "- Only players with <min_level> access can vote";
$this -> help['command']['vote add <vote#> <option>'] = "- Adds adds a new option to <vote#>";
$this -> help['command']['vote edit <vote#> <option#> <newtext>'] = "- Replaces the text for option <option#> in vote <vote#> with <newtext>";
$this -> help['command']['vote time <vote#> <time>'] = "- Sets the vote to run for <time>";
$this -> help['command']['vote start <vote#>'] = "- Makes the vote go live (if it passes all checks)";

$this -> help['command']['vote end <vote#>'] = "- Ends vote <vote#> regardless of any set time";

$this -> help['notes'] = "This module is under development!";
$this -> help['notes'].= "<time> needs to be a format as described by http://www.gnu.org/software/tar/manual/html_node/tar_109.html ";
$this -> help['notes'].= "This means that formats like most dates and also '1 month', 'next thursday' etc. are allowed.";

Also with time being quite limited for me these days I would appreciate any offer to help. I've got something of a frame up for this module and I'm about to start implementing real code.

Edit: Added setting to control logon spam (defaulting to Yes)
« Last Edit: September 10, 2007, 03:50:25 pm by Blueeagle »
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: New module: Vote.php
« Reply #1 on: September 10, 2007, 03:31:44 pm »
yer i was thining of making a module for vote, or updateing 1
yer im after a long term voting module
and also i would like logon spam to those who havnt yet voted

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: New module: Vote.php
« Reply #2 on: September 10, 2007, 08:42:43 pm »
I've been working on vote stuff, but in a totally different direction.

I was working on a community run raid bot that isn't run by admins, but is run by votes. Someone could request leader access, a vote would happen, etc, but this was all for BeBot 0.2.

Would be nice to have some core functionality to deal with some voting.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: New module: Vote.php
« Reply #3 on: September 10, 2007, 09:01:56 pm »
i would like that if some 1 wants leader on my bot they can do a vote :D

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: New module: Vote.php
« Reply #4 on: September 11, 2007, 05:58:23 am »
First I'm putting this together in one module then we can look at splitting it into core/module later.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 231
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal