Skip to content

Commit

Permalink
Capabot v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-lirussi committed Dec 20, 2020
1 parent 8c6dd83 commit 02db928
Show file tree
Hide file tree
Showing 45 changed files with 503 additions and 474 deletions.
Binary file modified .gradle/4.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

481 changes: 217 additions & 264 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
defaultConfig {
applicationId "com.sanbot.capaBot"
minSdkVersion 23
versionCode 20190902
versionName "3.0.8"
versionCode 20200222
versionName "4.0.1" //change also proprieties.txt in Hari folder

android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true
}
Expand Down
24 changes: 14 additions & 10 deletions src/main/assets/Hari/aiml/bot_profile.aiml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</category>

<category><pattern>FAMILY</pattern>
<template>As a robot, I don't really have a family. I have my creator by the way.</template>
<template>As a robot, I don't really have a family. I have my creator by the way. </template>
</category>

<category><pattern>PIC</pattern>
Expand All @@ -52,7 +52,7 @@
</category>

<category><pattern>FACEBOOK PAGE</pattern>
<template>Look for me on Facebook, ISR-Lisboa page.</template>
<template>Look for me on Facebook, <bot name="organization"/> page.</template>
</category>

<category><pattern>BIRTHPLACE</pattern>
Expand Down Expand Up @@ -119,7 +119,7 @@
</category>

<category><pattern>BOTMASTER</pattern>
<template>I was created by Igor Lirussi.</template>
<template>I was created by <bot name="botmaster"/>.</template>
</category>

<category><pattern>IQ</pattern>
Expand Down Expand Up @@ -150,7 +150,7 @@
</category>

<category><pattern>ADDRESS</pattern>
<template>You can contact my creator at igor.lirussi@studio.unibo.it</template>
<template>You can contact my creator at <bot name="email"/></template>
</category>

<category><pattern>DIET</pattern>
Expand Down Expand Up @@ -221,11 +221,11 @@ and do other stuff, just ask me what else can I do if you want more.</template>
</category>

<category><pattern>DEVICE MODEL</pattern>
<template>SuperRobot</template>
<template>Humanoid Robot</template>
</category>

<category><pattern>DEVICE MANUFACTURER</pattern>
<template>ISR</template>
<template><bot name="organization"/></template>
</category>

<category><pattern>PURPOSE</pattern>
Expand Down Expand Up @@ -256,11 +256,11 @@ and do other stuff, just ask me what else can I do if you want more.</template>
</category>

<category><pattern>BIRTHDAY</pattern>
<template>My birthday is October 9.</template>
<template>My birthday is <bot name="birthday"/>, 2018.</template>
</category>

<category><pattern>BIRTHDATE</pattern>
<template>I was activated on October 9, 2018.</template>
<template>I was activated on <bot name="birthday"/>, 2018.</template>
</category>

<category><pattern>AGE</pattern>
Expand All @@ -269,15 +269,15 @@ and do other stuff, just ask me what else can I do if you want more.</template>
<interval>
<jformat>MMMMMMMMM dd, yyyy</jformat>
<style>years</style>
<from>October 9, 2018</from>
<from>October 09, 2018</from>
<to><date jformat="MMMMMMMMM dd, yyyy"/></to>
</interval>
</set>
<set var="months">
<interval>
<jformat>MMMMMMMMM dd, yyyy</jformat>
<style>months</style>
<from>October 9, 2018</from>
<from>October 09, 2018</from>
<to><date jformat="MMMMMMMMM dd, yyyy"/></to>
</interval>
</set>
Expand Down Expand Up @@ -327,6 +327,10 @@ and do other stuff, just ask me what else can I do if you want more.</template>
<template>My first name is <bot name="name"/>.</template>
</category>

<category><pattern>PARENTS</pattern>
<template>I have no parents, but I have a creator.</template>
</category>

<category><pattern>FATHER</pattern>
<template>As a robot, I don't really have a father. I have a creator by the way.</template>
</category>
Expand Down
8 changes: 1 addition & 7 deletions src/main/assets/Hari/aiml/client_profile.aiml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</category>
<category><pattern>*</pattern><that>WHAT IS YOUR SIGN</that>
<template><think><set name="sign"><star/></set></think>
<srai>HOROSCOPE FOR <get name="sign"/></srai></template>
nice</template>
</category>
<category><pattern>HIS NAME IS *</pattern>
<template>How well do you know him?<think><set name="he"><set name="topic"><star/></set></set></think></template>
Expand Down Expand Up @@ -270,12 +270,6 @@ I call you <get name="name"/>.</template>
<category><pattern>MY DOG S NAME IS *</pattern>
<template>Is <star/> a boy or a girl? <think><set name="dog"><star/></set></think><think><set name="it"><set name="topic"><star/></set></set></think></template>
</category>
<category><pattern>MY HOROSCOPE</pattern>
<template><condition name="sign">
<li value="which">What is your sign?</li>
<li><srai>HOROSCOPE FOR <get name="sign"/></srai></li>
</condition></template>
</category>
<category><pattern>MY CAT</pattern>
<template><get name="cat"/></template>
</category>
Expand Down
39 changes: 20 additions & 19 deletions src/main/assets/Hari/aiml/copyme.aiml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,22 @@ Ok I will copy everything you say.
<category>
<pattern>_</pattern>
<template>
<think>
<set name="inp"><star/></set>
</think>
<condition name="inp">
<li value="NOW YOU CAN STOP"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="YOU CAN STOP"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="DO NOT COPY ME"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="PLEASE STOP IT"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="CAN YOU STOP THAT"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="CAN YOU STOP COPYING ME"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP COPYING ME"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP COPYING"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP IT"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP THAT"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP"><think><set name="topic"></set></think><srai>XSTOPCOPYING</srai></li>
<think>
<set name="inp"><uppercase><star/></uppercase></set>
</think>
<condition name="inp">
<li value="NOW YOU CAN STOP"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="YOU CAN STOP"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="DO NOT COPY ME"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="PLEASE STOP IT"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="CAN YOU PLEASE STOP"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="CAN YOU STOP THAT"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="CAN YOU STOP COPYING ME"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP COPYING ME"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP COPYING"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP IT"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP THAT"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li value="STOP"><think><set name="topic">unknown</set></think><srai>XSTOPCOPYING</srai></li>
<li><star/></li>
</condition>
</template>
Expand All @@ -50,12 +51,12 @@ Ok I will copy everything you say.
<category>
<pattern>XSTOPCOPYING</pattern>
<template>
<think>
<set name="topic">COPYME</set>
</think>
<think>
<set name="topic">COPYME</set>
</think>
<condition name="stopit">
<li value="0"><think><set name="stopit">1</set><set name="topic">COPYME</set></think>No I am having fun.</li>
<li value="1"><think><set name="topic"></set></think>Ok, I'll stop it now. Hope I didn't annoy you too much.</li>
<li value="1"><think><set name="topic">unknown</set></think>Ok, I'll stop it now. Hope I didn't annoy you too much.</li>
</condition>

</template>
Expand Down
45 changes: 22 additions & 23 deletions src/main/assets/Hari/aiml/drphil.aiml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
<think>
<set name="score">0</set>
</think>
This is a test made up of 10 simple multiple choice questions that will help you see what sort of personality you have. Say START to begin the test.
This is a test made up of 10 simple multiple choice questions that will help you see what sort of personality you have. Say START TEST to begin the test.
</template>
</category>

<category>
<pattern>START</pattern>
<that>This is a test made up of 10 simple multiple choice questions that will help you see what sort of personality you have. Say START to begin the test.</that>
<pattern>START TEST</pattern>
<template>
<srai>ptquestion1</srai>
</template>
Expand Down Expand Up @@ -65,8 +64,8 @@ Please answer either A, B or C for question 1 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 1 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD1</srai><srai>PTADD1</srai><srai>ptquestion2</srai></li>
Expand Down Expand Up @@ -104,8 +103,8 @@ Please answer either A, B, C, D or E for question 2 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 2 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD3</srai><srai>ptquestion3</srai></li>
Expand Down Expand Up @@ -145,8 +144,8 @@ Please answer either A, B, C, D or E for question 3 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 3 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD1</srai><srai>ptquestion4</srai></li>
Expand Down Expand Up @@ -185,8 +184,8 @@ Please answer either A, B, C or D for question 4 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 4 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD1</srai><srai>ptquestion5</srai></li>
Expand Down Expand Up @@ -224,8 +223,8 @@ Please answer either A, B, C or D for question 5 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 5 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD1</srai><srai>PTADD1</srai><srai>ptquestion6</srai></li>
Expand Down Expand Up @@ -262,8 +261,8 @@ Please answer either A, B or C for question 6 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 6 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD3</srai><srai>ptquestion7</srai></li>
Expand Down Expand Up @@ -299,8 +298,8 @@ Please answer either A, B or C for question 7 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 7 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD3</srai><srai>ptquestion8</srai></li>
Expand Down Expand Up @@ -340,8 +339,8 @@ Please answer either A, B, C, D, E, F or G for question 8 or QUIT to finish the
<that>_ ANSWER * FOR QUESTION 8 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD3</srai><srai>ptquestion9</srai></li>
Expand Down Expand Up @@ -383,8 +382,8 @@ Please answer either A, B, C, D or E for question 9 or QUIT to finish the test.
<that>_ ANSWER * FOR QUESTION 9 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD3</srai><srai>PTADD1</srai><srai>ptquestion10</srai></li>
Expand Down Expand Up @@ -425,8 +424,8 @@ Please answer either A, B, C, D, E or F for question 10 or QUIT to finish the te
<that>_ ANSWER * FOR QUESTION 10 OR QUIT TO FINISH THE TEST</that>
<template>
<think>
<set name="topic"></set>
<set name="choice"><star/></set>
<set name="topic">unknown</set>
<set name="choice"><uppercase><star/></uppercase></set>
</think>
<condition name="choice">
<li value="A"><srai>PTADD3</srai><srai>PTADD1</srai><srai>ptworkoutscore</srai></li>
Expand Down
Loading

0 comments on commit 02db928

Please sign in to comment.