sql update AGAIN !!
i fucked it up but now it's good
This commit is contained in:
parent
0755e827b9
commit
f775ddc61b
4 changed files with 21 additions and 1 deletions
|
@ -83,6 +83,7 @@
|
|||
<Compile Include="conditions\msgcntword.cs" />
|
||||
<Compile Include="conditions\msgcontains.cs" />
|
||||
<Compile Include="conditions\msgis.cs" />
|
||||
<Compile Include="conditions\msglen.cs" />
|
||||
<Compile Include="conditions\msgstartsw.cs" />
|
||||
<Compile Include="conditions\nameis.cs" />
|
||||
<Compile Include="conditions\random.cs" />
|
||||
|
|
17
bot/bot/conditions/msglen.cs
Normal file
17
bot/bot/conditions/msglen.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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` ADD `name` varchar(255)
|
|
@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS `admin` (
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `autonomous` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`startday` int(11) NOT NULL DEFAULT '-1',
|
||||
`starttime` varchar(6) NOT NULL DEFAULT '-1,-1',
|
||||
`periodicity` bigint(20) NOT NULL DEFAULT '1440',
|
||||
|
|
Loading…
Reference in a new issue