sql update AGAIN !!

i fucked it up but now it's good
This commit is contained in:
MallocNull 2014-11-18 14:25:16 -06:00
parent 0755e827b9
commit f775ddc61b
4 changed files with 21 additions and 1 deletions

View file

@ -83,6 +83,7 @@
<Compile Include="conditions\msgcntword.cs" /> <Compile Include="conditions\msgcntword.cs" />
<Compile Include="conditions\msgcontains.cs" /> <Compile Include="conditions\msgcontains.cs" />
<Compile Include="conditions\msgis.cs" /> <Compile Include="conditions\msgis.cs" />
<Compile Include="conditions\msglen.cs" />
<Compile Include="conditions\msgstartsw.cs" /> <Compile Include="conditions\msgstartsw.cs" />
<Compile Include="conditions\nameis.cs" /> <Compile Include="conditions\nameis.cs" />
<Compile Include="conditions\random.cs" /> <Compile Include="conditions\random.cs" />

View file

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bot.conditions {
class msglen {
static public string[] getInfo() {
return new string[] { typeof(msglen).Name, "message length over" };
}
static public bool performCheck(Message msg, string parameter) {
return msg.msg.Length >= Int32.Parse(parameter);
}
}
}

View file

@ -1 +1,2 @@
ALTER TABLE `autonomous` CHANGE `starttime` `starttime` VARCHAR( 6 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '-1,-1' ALTER TABLE `autonomous` CHANGE `starttime` `starttime` VARCHAR( 6 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '-1,-1'
ALTER TABLE `autonomous` ADD `name` varchar(255)

View file

@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS `admin` (
CREATE TABLE IF NOT EXISTS `autonomous` ( CREATE TABLE IF NOT EXISTS `autonomous` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`startday` int(11) NOT NULL DEFAULT '-1', `startday` int(11) NOT NULL DEFAULT '-1',
`starttime` varchar(6) NOT NULL DEFAULT '-1,-1', `starttime` varchar(6) NOT NULL DEFAULT '-1,-1',
`periodicity` bigint(20) NOT NULL DEFAULT '1440', `periodicity` bigint(20) NOT NULL DEFAULT '1440',