This simple php bot need to have display and write ti txt capability The project consist in create a bot in php that will be able to read a txt file and display this data to user when user ask for this
Example
[login to view URL]
123456789/19:38:21 AM
987654321/15:38:22 AM
122342567/11:38:54 AM
[login to view URL]
123456789:D
Functionality:
User ask menu to bot
Bot reply
- Show Status
- Send Command
- Download Data
-Show Status here we will read the [login to view URL] and explode the string using the “/“ as sentinel, this will create a array , array[0],array[1]
This need to be displayed to user
DEVICES TIME
123456789 19:38:21 AM
123456789 19:38:21 AM
123456789 19:38:21 AM
And need to add a back button
- Send Command
here we will read the [login to view URL] file do the same explode and will list the array[0] as option so user will be able to click in the array[0] like a button
123456789
123456789
123456789
once user clicked on one of the options they will see the command list , in this case we only have one command “ delete” , so after user clicked on option they will see this as a button
Delete
Once they clicked on delete this will write to the txt file [login to view URL] and will add a new line whit the option clicked “123456789” and will add “:” and a “D”
123456789:D
So every time we click in options and then in delete button they will add this line to the txt.
- Download Data
Here we will also list the option from the device txt file
123456789
123456789
123456789
once clicked they will send to user a txt file that will be located in the server the name of the txt is the name of the option + .txt in this case
We will send to user the file [login to view URL]
Hello Alejandro V.
I made a bot called "freelancersample_bot".
You can test it.
Let me know if this is what your looking for.
Some pics:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
Thanks.
$45 USD em 7 dias
5,0
(2 avaliações)
2,9
2,9
2 freelancers estão ofertando em média $73 USD for esse trabalho