Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with setting up bot #12

Closed
4zjata opened this issue Feb 12, 2021 · 34 comments
Closed

Help with setting up bot #12

4zjata opened this issue Feb 12, 2021 · 34 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@4zjata
Copy link

4zjata commented Feb 12, 2021

Tutorial have literally 3 steps. I just found aria2 so tutorial covering setting it up (can't find good one online) would be great. To me this tutorial sems like it's telling you to download, configurate and run and that's it but how I can do that? Btw it's possible to set it up on azure?

@gaowanliang
Copy link
Owner

If you only need to install and simply configure on Linux system, you can use this script. Although this script is in Chinese, it actually has few functions, and the operation is very simple.

https://github.com/P3TERX/aria2.sh

instructions

To ensure normal use, please install the basic components wget, curl and ca-certificates. Take Debian as an example:

apt install wget curl ca-certificates

Download script

wget -N git.io/aria2.sh && chmod +x aria2.sh

Run the script

./aria2.sh

Simple translation of menu

Aria2 one click installation management script enhanced version [v2.7.4] by P3 TERX.COM
0. Upgrade script
———————————————————————
1. Install aria2
2. Update aria2
3. Unload aria2
———————————————————————
4. Start aria2
5. Stop aria2
6. Restart aria2
———————————————————————
7. Modify the configuration
8. View configuration
9. View log
10. Clear log
———————————————————————
11. Update BT tracker manually
12. Update BT tracker automatically
———————————————————————
Aria2 status: installed | started
Auto update BT Tracker: on
Please enter the number [0-12]:

Just enter 1 to install and configure aria2 automatically,If you want to use it on azure, pay attention to limit the upload of BT download. The configuration file is in /~/.aria2c/aria2.conf. you can refer to this website to customize the information in it.

@4zjata
Copy link
Author

4zjata commented Feb 13, 2021

I installed aria2 but I don't know what I should do next. what commend I need to run in aria? I just need to download file from release and run it as executable? does config file gonna be created automatically or I need to create it? i still have many questions sorry for being noob so much.

@gaowanliang
Copy link
Owner

Due to the current program is only a beta program, and did not provide a rich set of tutorials.So for the sake of simplicity, many of them are metaphors, and it's not very clear what you're going to do.So it is normal for you to feel confused. When I release version 1.0, related tutorials will gradually become richer. At present, my time is relatively tight, I can only update occasionally, so I don’t have much time to write tutorials.

You just need to go to the release to download the file for your system architecture.You need to create a new folder and unzip the downloaded archive in that folder.You will then need to create a new config.json file in that folder and fill it in according to the format suggested in the readme. At present, since the program is only a beta version, you need to fill in all the content, including downloadFolder and moveFolder(even if you do not need to use these two folders, you will need to fill in an address that exists on your computer,the next version will fix this problem).Then run the binary file directly.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

Sorry if my words felt like a roast. You make amazing program you were super helpful. We're on GitHub so I didn't expect program that I'm gonna set up in few seconds. It's free and it's such a good work I think after completing entire program you could sell this.

Thanks for investing your time replying to me and making such an amazing tool. ♥️

@gaowanliang
Copy link
Owner

Thank you very much for your interest in my program. Have a nice day.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

Do I need to run any commands in aria2 before running executable?

@gaowanliang
Copy link
Owner

No, but you need to make sure that your aria2 settings are correct and appropriate. At present, you can't set the configuration of aria2 through this bot (but actually the API of aria2 supports setting it through external programs)

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

Kind of weird question but i unapacked linux version of release but it's have ".file" extension and i can't really find a way to run. I tried doing

  1. sudo chmod +x ./DownloadBot
  2. ./DownloadBot

But it's saying ./Downloadbot: No such file or directory now I'm kinda lost and don't know what I should do.

@gaowanliang
Copy link
Owner

There is no file ending with "file" suffix in all compiled files. You need to check whether you have decompression error or delete the suffix and try to run it.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

I mean it don't have any extension but windows explorer says it's "File"

@gaowanliang
Copy link
Owner

Linux binary executable itself does not have any extensions, you need to use the ls command to see if it is decompressed in the current folder

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

screen
Idk how to discribe what i get so just look on screenshot

@gaowanliang
Copy link
Owner

gaowanliang commented Feb 14, 2021

At the same time, according to what you just said, your input and prompt error messages are not the same:

sudo chmod +x ./DownloadBot
./DownloadBot
But it's saying ./Downloadbot: No such file or directory now I'm kinda lost and don't know what I should do.

You typed "DownloadBot", but the output error says "Downloadbot",you need to check if there is a typo. If you feel uncomfortable typing, you can directly type "./Do "and press the Tab key to complete automatically

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

So I did it and didn't menage do set up it at the same time :/
image

EDIT: Wait now when I'm looking at it port is 80 need to check it out in config file
EDIT2: Why it's trying to do something in D: drive? in on linux
EDIT3: In the pattern on github there wasn't port so I did the same thing should I add it?

@gaowanliang
Copy link
Owner

If you do not have Aria2 enabled, and if you are installing Aria2 through the script I mentioned above, type service aria2 start to start Aria2 (if you need to restart, simply change the start command to restart). If you use the above scripts to install, the default websocket address is "ws://127.0.0.1:6800/jsonrpc" instead of 5800.

As for the output of D: , the default error code position of the golang output is the absolute position of the error code in the system at the time of compiling the binary file, and has nothing to do with the system in use.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

still same error

imageI

I used address that script gave me after completing installation

@gaowanliang
Copy link
Owner

gaowanliang commented Feb 14, 2021

This should not be the correct address, based on my experience with this script, you should fill in "ws://127.0.0.1:6800/jsonrpc"

You should pay attention to hiding your IP address in the screenshot, so as to avoid being attacked by hackers.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

It's on vm I don't think hackers can ddos microsoft so I don't really care.

image

Used ip that you gived me and it's connect but now started spamming this. When I used command nothing happens

@gaowanliang
Copy link
Owner

I have never encountered this situation, which is generally caused by not connecting to the telegram server, you need to test the connectivity of this server with the TG server.

@gaowanliang
Copy link
Owner

I haven't tested it on the Azure server, because it is not economical to install a program that needs to upload files on the Azure server. But this program works normally on other servers. If you still can’t solve it, I will find a time to test it on the Azure server and I will reply to you later.

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

After some googling found this and works perfectly now. Thanks for your help and this amazing program ❤ Closing issue for now

@4zjata 4zjata closed this as completed Feb 14, 2021
@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

Okay when I want to link my onedrive I can't cuz your bot is unverified and it want approval from the admin. But I have torrented anime on that drive so I don't want to look suspicious, but I have my token and rclone config with my onedrive in it. Can I use this data to link my onedrive?

@gaowanliang
Copy link
Owner

gaowanliang commented Feb 14, 2021

You can use rclone to mount your onedrive, And through the bot provided by the move file function to use, at this time you need to fill in the moveFolder for you to mount the folder pointed to.
As the current program is not perfect, is unable to pass the Google and Microsoft's audit, so now can not be verified

@4zjata
Copy link
Author

4zjata commented Feb 14, 2021

Ok gonna try it out

@4zjata
Copy link
Author

4zjata commented Feb 15, 2021

I transferred to windows and now I have other problem after sending link bot don't react at all and after sending random things says Unknown download link, please check again

@4zjata 4zjata reopened this Feb 15, 2021
@4zjata 4zjata changed the title More steps in tutorial Help with setting up bot Feb 15, 2021
@4zjata
Copy link
Author

4zjata commented Feb 15, 2021

Also only output in cmd was "0"

@4zjata
Copy link
Author

4zjata commented Feb 18, 2021

Do you know what can cause this?

@gaowanliang
Copy link
Owner

It is not clear what the cause of this problem is, you can give a more detailed runtime log for reference.

@4zjata
Copy link
Author

4zjata commented Feb 19, 2021

Where is log file?

@gaowanliang gaowanliang added the enhancement New feature or request label Feb 19, 2021
@gaowanliang
Copy link
Owner

I mean, is there any other output?
The detailed log system can be planned after most of the functions have been completed. At present, it only provides basic error prompts.

If you can run this program successfully, please enter /start in telegram after running.

@4zjata
Copy link
Author

4zjata commented Feb 19, 2021

Soooo I was able to get it "running" but after I closed my machine I can't run it again, this is what I get after trying to run it:
image

EDIT: I was dumb i forget to turn on aria2

@gaowanliang
Copy link
Owner

If you switch to Windows, you won't be able to connect to aria2 via ws://127.0.0.1:6800/jsonrpc, and of course it will report an error.

You need to check what is the rpc-listen-port in the aria2.conf, the information to be filled in the DownloadBot should be ws://127.0.0.1:5800/jsonrpc (assuming rpc-listen-port = 5800)

@4zjata
Copy link
Author

4zjata commented Feb 19, 2021

Ok so now in most of the time its work but some times I have this issue
image

@gaowanliang
Copy link
Owner

gaowanliang commented Feb 19, 2021

There are too many files in your BT file, so the program can't return so much text about the contents. If you are downloading large files for automation, it is not supported at present. It is expected that it will be supported initially in version 0.0.6.
Refer to "Functions realized" in readme for the support of related functions. Only those functions with a check mark in front of them are currently supported.

@4zjata 4zjata closed this as completed Mar 3, 2021
@gaowanliang gaowanliang added the documentation Improvements or additions to documentation label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants