Discord Binding V1
ddaemon-monorepo/binding-discord at main ยท dentropy/ddaemon-monorepo
README
Requirements
- Unix Environment
- wiki.software.list.WSL for wiki.software.List.Windows
- wiki.software.List.MacOS
- wiki.software.List.linux
- ddaemon-monorepo
- wiki.software.List.DiscordChatExporter
- wiki.software.List.docker (Optional, will have to change commands to export guilds)
- wiki.ddaemon.monorepo.bindings.discord.Get Discord User Token
- wiki.software.list.nodejs or wiki.software.List.nvm
- dentropydaemon-wiki/Software/List/Elasticsearch Instance
Scraping
git clone keybase://team/dentropydaemon/ddaemon-monorepo
cd ddaemon-monorepo/discord-binding
mkdir inputs
# Export your guilds
docker run -v \
`pwd`:/app/out tyrrrz/discordchatexporter:stable exportguild \
-t "DISCORD_USER_TOKEN" -g GUILD_ID \
--dateformat "yyyy-MM-dd H:mm:ss.ffff"\
-f Json -p 80mb
Indexing
cd ddaemon-monorepo
cp .env_sample .env
# Edit .env file with environment variables
vim .env
## RUN THESE ONE AT A TIME
cd discord-binding
npm install
node index.js
cd ..
bash ./discord-binding/test_connection.sh
bash ./discord-binding/set_mapping.sh
bash ./discord-binding/delete_index.sh
bash ./discord-binding/elastic_index.sh
bash ./discord-binding/set_mapping.sh