Closed zenusop closed 2 years ago
hi
install pybotnet version 2 by: pip3 install pybotnet -U --pre
Document version 2 is not ready yet But if you want to use version two, you can read the simple.py file.
and I have not tested version 2 on Windows yet ..!
I was using windows at first lol im using unbuntu now and btw is pip install python3 going to give it the correct python version
I wrote the document, you can see it here https://onionj.github.io/pybotnet/ Ask if there is still a question
Ok thanks for your hel
you're welcome
How can I run the setup.py and stuff on linux I mainly use windows and barely use linux. I know you do like cd and then find the directory the file is located, but what command do I do to run it
You can use cd on windows too, cd is used to move to another directory. What is your problem specifically ?
when I open the main.py it instaly shuts and also I can't figure out how to run the .sh filese
also do you have discord mine is Blx#0001
Can you send your main.py ? I want to see the configurations you've done, You can anonymize the telegram keys. And no, Unfortunately, I don't have Discrod.
I haven't confinurged it at all because I can't run the install.sh on windows or even open the main.py
Can you run "simple.py" ? .sh files are shell files which are for linux, you can't run them on Windows.
I ran simple.py and it made a folder pycache
That's OK, Please rename "configs.py.sample" to "configs.py" and add your own configs, Then try running "simple.py" again.
Do I need to add configs? or are there already a base set of them or could you share yours to me?
Yes you need to add configs, These configs are your bot token and your user id so PyBotNet could communicate with the Telegram API and send messages to you. You don't need to send the configs to me, just make sure that they are correct, There is a good guide in "configs.py.sample" you can use.
Ok thanks and I can use a telegram channel to control the bots?
and I also re ran simple confing now do I open main.py?
PyBotNet does not support this feature currently, but you can write your own script and modify PyBotNet to work the way you want.
and I also re ran simple confing now do I open main.py?
You shouldn't run config.py, you need to enter your "bot-token" and "user-id" there and then run "simple.py" You can use the guide in configs.py to understand what credentials you need to enter. Make sure that you've entered the correct credentials and have changed "configs.py.sample" to "configs.py"
Yeah i added my bot token and my user id in the configs.py and i reran simple.py. what do i do next? Like to i have to make my own menu ans builder?
No You don't, You should see if your telegram bot works now. by sending '/who' to it. Please refer to the documentation, From there you can understand what you should do next.
Thsnks i will try
/who doesn't work i added my bot token and the admin id, but now when i tried /who nothing happend
Are you sure your configuration is correct ?
Please try these commands :
pip3 install pybotnet -U --pre
python3 -m pybotnet -t [TELEGRAM_TOKEN] -i [ADMIN_CHAT_ID] -n [BOT NAME]
and then try /who in your bot.
Ok i will try that and i will check tge simple config again
Is my telegram api token the bot token? or how do i get the telegram api token also is the admin_chat_id my user admin token id?
Please refer to the documentation Or read the guide in the config file, From there you will find what to do next.
I still don't understand what I'm doing wrong I followed the documentaion and stuff.
When I try to run the main.py i get a error that says python3: can't open file 'C:\Users\benwz\Desktop\pybotnet-master\main.py': [Errno 2] No such file or directory (im using cmd)
I also tried /who and it didn't work
Do i need a group chat for this to work or something
Please try these commands :
pip3 install pybotnet -U --pre
python3 -m pybotnet -t [TELEGRAM_TOKEN] -i [ADMIN_CHAT_ID] -n [BOT NAME]
and then try /who in your bot.
all of that as one command?
No, run each one of them separately.
when I run the second one it says there is no module named pybotnet
Try this instead:
pip install pybotnet -U --pre
python3 -m pybotnet -t [TELEGRAM_TOKEN] -i [ADMIN_CHAT_ID] -n [BOT NAME]
I should be entering that command in cmd right in the dir with all the files
No, You can enter them in any directory you want.
Still dosen't work do you want screenshot so I can show yo?
Yes, Please provide a screenshot of the error.
What can I do?
Please enter your Telegram-token , admin-chat-id and bot-name in the placeholders !! Also, Please delete the clone of pybotnet you have, re-clone it again, rename configs.py.sample to configs.py, enter your credentials there, and then try running ./simple.py again. Please read the guides carefully !
Alright Thank you! I will try
I still don't understand what i'm doing wrong I edited confing.sample.py to config.py, I enterned my proper credentials I also recloned the whole projected I enterd the command using my place holders and it still gave me the error. :( Idk what im doing wrong
It's ok, Did you run python ./simple.py
after cloning the project entering you proper credentials ? If not, Please do.
Note : You should run this command in the pybotnet directory.
I get a error when I enter that command LOL
Please provide me with the error and the commands that you've ran.
Can you provide me your config.py? You can send it to my email if you are not ok with sending it here My email : sepehrrs06@gmail.com
ok thanks I will thank you for your support :)
What version of python does it require and also when I open setup.py it instantly closes