• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

oneloveipfs/DTube-IPFS-Bot: Discord bot to download DTube videos and adds to IPF ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

oneloveipfs/DTube-IPFS-Bot

开源软件地址:

https://github.com/oneloveipfs/DTube-IPFS-Bot

开源编程语言:

JavaScript 99.5%

开源软件介绍:

⚠️ This repository has been depreciated. All functionalities of the Discord bot will be bundled into OneLoveIPFS v3 release. ⚠️

DTube IPFS Discord Bot

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.

Dependencies required

  • NodeJS with npm command line tools
  • wget
  • ipfs (go-ipfs with a running daemon)

Additional requirements

  • A Discord application for the bot in your Discord account

Installation

  1. Clone this repository by typing git clone https://github.com/techcoderx/DTube-IPFS-Bot.git in a terminal window.

  2. Install the required node modules. cd DTube-IPFS-Bot && npm install

  3. Insert the Discord bot token in auth.json file.

  4. Configure the bot by modifying config.json file. If you need help configuring the bot, view the documentation here.

  5. Run chmod a+rx Pinned/rmPins.sh to make unpinning script located at Pinned folder executable.

  6. Run node --max_old_space_size=4000 bot.js to 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:

https://discordapp.com/oauth2/authorize?client_id=YOURCLIENTID&scope=bot

(where YOURCLIENTID is the client ID of your Discord application)

Unpinning IPFS files

You may choose to unpin all IPFS files that were downloaded by a user by doing the following:

  1. Navigate to Pinned folder

  2. Run ./rmPins.sh DiscordUserID where DiscordUserID is the ID of a Discord user.

  3. Run ipfs repo gc when you're done.

Links support

The Discord bot command supports all kinds of links of Steem frontends, such as d.tube, dtube.network, dsound.audio, steemit.com and busy.org. However, this bot only supports DTube videos and DSound audios at the moment. More platform support coming in the next few updates.

How to contribute

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
daviddahl/wut: Libp2p / IPFS terminal-based chat发布时间:2022-06-23
下一篇:
DimensionDev/Maskbook: The portal to the new, open Internet. ([I:b])发布时间:2022-06-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap