Feature request|calyx|calyx238@gmail.com|1362612958|calyx|xx|0|87.112.89.234|How about<br /><br />[code]<br />+ where are you from<br />* &lt;reply*&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />- i live in &lt;bot location&gt;[/code]<br /><br />as a shortcut for<br /><br />[code]<br />+ where are you from<br />* &lt;reply1&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply2&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply3&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply4&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply5&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply6&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply7&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply8&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />* &lt;reply9&gt; eq i live in &lt;bot location&gt; =&gt; i just told you that<br />- i live in &lt;bot location&gt;[/code]||||
Re: Feature request|Art|stoney535@gmail.com|1363463157|Art|xx|0|76.21.135.205|I'm just trying to help as I'm sort of new to Rivescript myself but:<br /><br />In the file, begin.rs one assigns specific variables.<br />! var location = where ever your bot lives.<br /><br />In the aimlW.rs file the trigger, [i]where do you live[/i], is answered by a few responses in some different locations depending upon what has been said:<br /><br />+ where do you live<br />- &#123;random&#125;I live inside a computer. &nbsp;&#124;I am living in &lt;bot location&gt;. &#124;My location is &lt;bot location&gt;. &#123;/random&#125;Where are you?<br /><br />+ where do you reside<br />- &#123;@where do you live&#125;<br /><br />+ where are you from<br />- I am originally from &lt;bot birthplace&gt;. Now I live in &lt;bot location&gt;. &nbsp;Where are you?<br /><br />Hope this helps a bit.<br />- Art -<br />||||
Re: Feature request|calyx|calyx238@gmail.com|1363824574|calyx|xx|0|87.112.4.107|I do use random responses in some situations but I try to avoid using them in situations where I need more control. It also make my test suite a lot simpler when I can predict the responses :)<br />Cheers||||
Re: Feature request|calyx|calyx238@gmail.com|1364065110|calyx|xx|0|87.114.141.144|I found a more elegant solution to this problem:<br /><br />[code]<br />+ where are you from<br />* &lt;get mentioned_location&gt; eq 1 =&gt; i have already told you that<br />- &lt;set mentioned_location=1&gt;i live in &lt;bot location&gt;<br />[/code]<br /><br /> :)||||
