Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keiffster/template-y
A template for creating your own bot that relies on core program-y files
https://github.com/keiffster/template-y
Last synced: 16 days ago
JSON representation
A template for creating your own bot that relies on core program-y files
- Host: GitHub
- URL: https://github.com/keiffster/template-y
- Owner: keiffster
- License: mit
- Created: 2017-09-13T14:48:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T17:18:26.000Z (over 4 years ago)
- Last Synced: 2023-12-18T11:55:29.868Z (11 months ago)
- Language: Python
- Size: 77.1 KB
- Stars: 13
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE
Awesome Lists containing this project
README
Template-y
===========Template-Y is as the name suggests a template for how to build your own bot, based on one of the core bots provided
in Program-Y. The reason for this template and structure is to allow you to create your own aiml, set, map and rdf files
and keep them in a folder schema that maps back to Program-Y but allows Program-Y repo to be updates and pulled from
GitHub without it conflicting with your own Bot development.Each folder in this template contains a README.txt explaining the reason for the folder, the contents it should
contain and how to specifiy the correct config options to keep the 2 folders seperate.Naming Your Project
--------------------
Obviously no one wants to create bot/project named templatey. So you need to some manual tweaking of folders and config
files as follows. Assumption here is that the top level folder is the name of your project1) Rename template-y to NAMEOFPROJECT, the name of the bot/project you want to call it
2) Rename src/templatey to /src/NAMEOFPROJECT
3) Rename test/templatey to /test/NAMEOFPROJECT
4) Replace any reference to templatey in config.yaml with NAMEOFPROJECT
5) Replace any reference to templatey in logging.yaml with NAMEOFPROJECT
6) Replace any reference to templatey in console.sh with NAMEOFPROJECT
In addition there are some config options you can decide on in config.yaml
1) Decide which overrides you want by switching the following config items
overrides:
allow_system_aiml: false
allow_learn_aiml: false
allow_learnf_aiml: false2) Specify the location of the learnf file if you set allow_learnf_aiml to true in overrides
defaults:
learn-filename: ./aiml/learnf.aiml3) Decide if you want to generate a braintree. xml file by uncommenting the following lines
#braintree:
# file: ./braintree.xml
# content: xml
See the Program-Y for more details about what the braintree can be used for4) Check you .sh or .cmd file t ensure that paths are correct
Template-y installs at the same level as program-y
Therefore the python paths and relative paths in config assume
that program-y is reached via the relative path ../program-y
If you install program-y and/or template in different paths to these
then you will need to adjust