Скачать открытый исходный код бота Либре общий выпуск и установите бот Libre на свой собственный сервер
Bot Libre Forum

temporarily import information from the web

по bobred опубликовано Feb 13, 6:12

can I import information from a websight into my chatbot then delete that information the next sentence I enter?

by admin posted Feb 19, 16:45
For importing information into your bot see,

In general any unpinned data will eventually be deleted/garbage collected if unreferenced.
To force the deletion of an object call the delete() method in Self. But be careful of deleting objects that may be used elsewhere.

Updated: Feb 19, 16:47
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1591, today: 5, week: 13, month: 134

by bobred posted Feb 19, 18:24

can i get what was previously stored in memory by the time it was stored then delete it?

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1499, today: 2, week: 6, month: 97

by admin posted Feb 21, 13:18
You would need to keep track of the data you load then delete it. There is no easy way to delete all new data, although this is something we are investigating a solutions for.

There is also a Memory class in Self that does support some basic querying API of the entire bot's database.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1506, today: 4, week: 8, month: 99

by bobred posted Feb 25, 12:33

keep me informed.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1172, today: 5, week: 19, month: 103

Идентификатор: 32070378
Теги: self
Опубликовано: Feb 13, 6:12
Ответы: 4
Вид: 1745, сегодня: 5, неделю: 12, месяц: 166
Я уверен, что
Вывесить флаг как оскорбительное, или в нарушение правил сайта