mirror of
https://github.com/keiffster/program-y.git
synced 2026-04-03 00:19:21 -06:00
GUI for my bot (Not a feature request I was just unsure where to ask) #23
Labels
No labels
News
News
News
News
News
News
News
News
bug
bug
bug
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
enhancement
enhancement
enhancement
enhancement
enhancement
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/program-y#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rsanche4 on 1/20/2022
Hey! I think this is a great program, and I am enjoying it. I wanted to ask, what if I wanted to create a GUI for my bot? When I was running the python-aiml library, (another different library from your own, that one only mimics AIML 1.0) I was able to simply import the module, load aiml using 1 line of code, and I would send an input() to the kernel function, in which case it would send a string back with the reply from the bot. This made it really easy to manipulate that string and easily convert it to a nice application with tkinter, all in one main bot.py that I created.
How could I accomplish this with programy? I can see I can edit the brains of the bot, and it reads AIML 2.0 and all, which is AWESOME, and it functions with many other scripts I dare NOT touch, but I have only been able to run the y-bot.cmd from the command line and it magically loads up the bot. It's great, but how could I control what gets sent to the bot and what the bot replies?
If this helps, this is more or less of what I would like to do:
import something-perhaps?
m=input("send something to the bot?")
reply = bot.send(m)
then reply has that respone from the bot, and I can use reply and do whatever I want with it. In this script if I want to combine it with tkinter for a small chatbot application, I can do that as well.
Again, this is NOT a feature I want you to implement. Not at all. This is for me. I will like to see how I can manipulate in a python script what gets sent to the bot and what the bot sends back.
A million thanks for this!! And I love your work, keep it up!