소개
A simple bot that plays a brazilian-style rocket sound whenever is called by someone in a voice channel and then leaves.
Using only the discord.js and discord-opus dependencies, the bot code structure consists in one single Javascript index file, alongside an audio file and a Procfile for Heroku deployment. The code has one event, which prints something in the terminal when the bot is ready to use, and one command that follows this logic:
Whenever an user inside a voice channel that isn't a bot types '!rojao' or '!rojão' (in portuguese, rocket or firework), the bot triggers the 'join' command to join the voice channel. Then, the bot replies the message author with a text simulating the sound of the rocket (with a brazilian type of accent and some emojis), plays the audio file and, as the reproduction finishes, leaves the voice channel.
언어
- English
리뷰
로그인 — 리뷰를 작성하려면 로그인하세요.
아직 리뷰가 없습니다 — 첫 번째로 경험을 공유해 보세요.
투표 통계
이 가이드에서 지난 30일 동안 기록된 수치예요.
최근 30일
- 투표
최근 30일 동안 여기 투표가 없어요.