DTube IPFS Discord bot enables Discord server members to obtain the IPFS hash of a DTube video at a specified resolution, fetches the video and pins video to local IPFS node (where this bot is hosted). Also pins DSound audio files.
npmcommand line tools
ipfs(go-ipfs with a running daemon)
git clone https://github.com/techcoderx/DTube-IPFS-Bot.gitin a terminal window.
cd DTube-IPFS-Bot && npm install
config.jsonfile. If you need help configuring the bot, view the documentation here.
chmod a+rx Pinned/rmPins.shto make unpinning script located at Pinned folder executable.
node --max_old_space_size=4000 bot.jsto start the Discord bot.
Note: you may need increase the value of
--max_old_space_size if several large files are being downloaded at once.
Use the link below to invite the bot to your Discord server:
YOURCLIENTID is the client ID of your Discord application)
You may choose to unpin all IPFS files that were downloaded by a user by doing the following:
DiscordUserIDis the ID of a Discord user.
ipfs repo gcwhen you're done.
The Discord bot command supports all kinds of links of Steem frontends, such as
busy.org. However, this bot only supports DTube videos and DSound audios at the moment. More platform support coming in the next few updates.
If you found any ways to improve on the code, or found any bugs, feel free to create a pull request on the GitHub repository. You can also contact me on Discord
techcoderx#7481 if you have any enquiries.