Skip to content

Commit 3049536

Browse files
committed
Update README.md
1 parent 3e5726d commit 3049536

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Variables, functions and procedures of `TTimmy`
7575
- **Type**: Boolean variable
7676
- **Visibility**: Private
7777
- **Availability**: v1.0.0 to v1.2.0
78-
- **Description**: `TTimmy.Enabled` tells other functions of `TTimmy` whether if the bot instance is ready to work. If `TTimmy.Enabled` is false, all major functions of `TTimmy` won't perform their operations and will exit right away, usually with the return code 102. The value of this boolean variable can be set by using [`TTimmy.Enable`](#procedure-enable) or [`TTimmy.Disable`](#procedure-disable).
78+
- **Description**: `TTimmy.Enabled` tells other functions of `TTimmy` whether if the bot instance is ready to work. If `TTimmy.Enabled` is false, all major functions of `TTimmy` won't perform their operations and will exit right away, usually with the return code 102. The value of this boolean variable can be set by using [`TTimmy.Enable()`](#procedure-enable) or [`TTimmy.Disable()`](#procedure-disable).
7979

8080
### procedure `Enable()`
8181
- **Source**: Line 154 ([reference](http://github.com/42tm/timmy/blob/v1.2.0/timmy.pas#L154))
@@ -95,13 +95,13 @@ Variables, functions and procedures of `TTimmy`
9595
- **Type**: Dynamic array of `TStrArray`
9696
- **Visibility**: Private
9797
- **Availability**: v1.0.0 to v1.2.0 (In v1.0.0, it's `QKeywordsList`)
98-
- **Description**: This is an array of arrays. Each array in this array holds strings, which are keywords for a question. Keywords help the bot (or more specifically, `TTimmy.Answer()`) to understand the end-user's messages and have replies for the messages.
98+
- **Description**: This is an array of arrays. Each array in this array holds strings, which are keywords for a question. Keywords help the bot (or more specifically, [`TTimmy.Answer()`](#function-answertmessage-string)) to understand the end-user's messages and have replies for the messages.
9999

100100
### `ReplyList`
101101
- **Type**: Dynamic array of `TStrArray`
102102
- **Visibility**: Private
103103
- **Availability**: v1.0.0 to v1.2.0
104-
- **Description**: Just like `TTimmy.MKeywordsList`, `TTimmy.ReplyList` is an array of arrays. Each array in `TTimmy.ReplyList` holds strings, which are possible replies for a question. If an array in `TTimmy.ReplyList` has more than two strings, the bot will pick one, randomly. Arrays in `TTimmy.ReplyList` are correspond to arrays in `TTimmy.MKeywordsList` if we are speaking in terms of position. For example, the replies at offset 2 of `TTimmy.ReplyList` are replies for the message with the keywords at offset 2 of `TTimmy.MKeywordsList`.
104+
- **Description**: Just like `TTimmy.MKeywordsList`, `TTimmy.ReplyList` is an array of arrays. Each array in `TTimmy.ReplyList` holds strings, which are possible replies for a question. If an array in `TTimmy.ReplyList` has more than two strings, the bot will pick one, randomly. Arrays in `TTimmy.ReplyList` are correspond to arrays in `TTimmy.MKeywordsList` in terms of position. For example, the replies at offset 2 of `TTimmy.ReplyList` are replies for the message with the keywords at offset 2 of `TTimmy.MKeywordsList`.
105105

106106
### `NOfEntries`
107107
- **Type**: Integer
@@ -141,7 +141,7 @@ Variables, functions and procedures of `TTimmy`
141141
- `Replies` \[`TStrArray`\]: Possible replies to the message that contains the keywords clue in `MKeywords`
142142
- **Return**: Integer
143143
- 102: The instance is not enabled (or initialized)
144-
- 202: Duplication check is enabled (`TTimmy.DupesCheck` = true) and a match of `MKeywords` is presented in `TTimmy.MKeywordsList`
144+
- 202: Duplication check is enabled ([`TTimmy.DupesCheck`](#dupescheck) = true) and a match of `MKeywords` is presented in `TTimmy.MKeywordsList`
145145
- 200: The operation is successful
146146
- **Visibility**: Public
147147
- **Availability**: v1.0.0 to v1.2.0
@@ -179,20 +179,20 @@ Variables, functions and procedures of `TTimmy`
179179
- **Type**: Boolean
180180
- **Visibility**: Public
181181
- **Availability**: v1.0.0 to v1.2.0
182-
- **Description**: `TTimmy.DupesCheck` specifies whether `TTimmy.Add()` should check for duplicate before adding new data or not. If the new data matches any of those already persisted in `TTimmy.ReplyList`, `TTimmy.Add()` stops its operation and return 202, indicating that the operation is not successful.
182+
- **Description**: `TTimmy.DupesCheck` specifies whether `TTimmy.Add()` should check for duplicate before adding new data or not. If the new data matches any of those already persisted in `TTimmy.ReplyList`, `TTimmy.Add()` stops its operation and returns 202, indicating that the operation is not successful.
183183

184184
### function `Remove(MKeywords: TStrArray)`
185185
- **Source**:
186186
- v1.0.0: Line 211 ([reference](http://github.com/42tm/timmy/blob/v1.0.0/src/timmy.pas#L211))
187187
- v1.1.0: Line 213 ([reference](http://github.com/42tm/timmy/blob/v1.1.0/timmy.pas#L213))
188188
- v1.2.0: Line 216 ([reference](http://github.com/42tm/timmy/blob/v1.2.0/timmy.pas#L216))
189-
- **Parameters**: `MKeywords` (`QKeywords` in v1.0.0) \[`TStrArray`\]: Keywords clue to delete from the bot's metadata (or more specifically, `TTimmy.MKeywordsList`).
189+
- **Parameters**: `MKeywords` (`QKeywords` in v1.0.0) \[`TStrArray`\]: Keywords clue to delete from the bot's metadata.
190190
- **Return**: Integer
191191
- 102: The instance is not enabled (or initialized)
192192
- 308: The operation is successful
193193
- **Visibility**: Public
194194
- **Availability**: v1.0.0 to v1.2.0
195-
- **Description**: `TTimmy.Remove()` removes data from the bot's metadata, and as of version 1.2.0, there are 4 overloaded `TTimmy.Remove()`. This one takes a `TStrArray`, find matching arrays (arrays with the same elements in the same order) in `TTimmy.MKeywordsList`, and delete those matching arrays.
195+
- **Description**: `TTimmy.Remove()` removes data from the bot's metadata, and as of version 1.2.0, there are 4 overloaded `TTimmy.Remove()`. This one takes a `TStrArray`, find matching arrays (arrays with the same elements in the same order) in `TTimmy.MKeywordsList`, and delete those matching arrays. It also deletes the array(s) in `ReplyList` that is/are bond to those matching array(s) of keywords.
196196

197197
### function `Remove(KeywordsStr: String)`
198198
- **Source**:
@@ -267,7 +267,7 @@ Other functions provided by the unit & `TStrArray`
267267
- **Availability**: v1.0.0 to v1.2.0
268268
- **Description**: `StrSplit()` splits the string `S` using `delimiter` as delimiter, and returns a `TStrArray` holding the delimited strings.
269269

270-
### function CompareStrArrays(ArrayA, ArrayB: TStrArray)
270+
### function `CompareStrArrays(ArrayA, ArrayB: TStrArray)`
271271
- **Source**:
272272
- v1.0.0: Line 130 ([reference](http://github.com/42tm/timmy/blob/v1.0.0/src/timmy.pas#L130))
273273
- v1.1.0: Line 132 ([reference](http://github.com/42tm/timmy/blob/v1.1.0/timmy.pas#L132))

0 commit comments

Comments
 (0)