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

Storing anonymous channel Id and log channels Id in DB #1

Open
NidheeshaT opened this issue Sep 30, 2023 · 7 comments
Open

Storing anonymous channel Id and log channels Id in DB #1

NidheeshaT opened this issue Sep 30, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@NidheeshaT
Copy link
Collaborator

NidheeshaT commented Sep 30, 2023

  • Feature : A server can have only one anonymous channel and its corresponding log channel
  • have a schema to store server/guild id along with anonymous channel(null initially, must be prompted to add if null) and optional log channel id
  • for every message from the Events.MessageCreate signal identify the appropriate server channels to send messages
  • Suggested usage of mongoDB and mongoose
@Mayank-Sharma17
Copy link

assign me this issue.

@Mayank-Sharma17
Copy link

@NidheeshaT I have created 2 channels default: #general 2nd: #test0 on my own server, I setup the bot and invited the bot on #general channel using URL from discord developer portal.

Then I added both the IDs (discord token and anonymous channel) in .env file and also added mod channel id (#test0 channel)
But when I run npm run dev error is occurring - "Please set all required environment variables"

@NidheeshaT
Copy link
Collaborator Author

NidheeshaT commented Oct 16, 2023

@NidheeshaT I have created 2 channels default: #general 2nd: #test0 on my own server, I setup the bot and invited the bot on #general channel using URL from discord developer portal.

Then I added both the IDs (discord token and anonymous channel) in .env file and also added mod channel id (#test0 channel) But when I run npm run dev error is occurring - "Please set all required environment variables"

Sorry for late reply, you have put the .env file in root folder right? check by printing env variables , better discuss this in discord
my username

@Mayank-Sharma17
Copy link

@NidheeshaT I have created 2 channels default: #general 2nd: #test0 on my own server, I setup the bot and invited the bot on #general channel using URL from discord developer portal.

Then I added both the IDs (discord token and anonymous channel) in .env file and also added mod channel id (#test0 channel) But when I run npm run dev error is occurring - "Please set all required environment variables"

Sorry for late reply, you have put the .env file in root folder right? check by printing env variables , better discuss this in discord
my username

It's ok, it's working now
link of your username is not directing to your DM, here is my username -> mynkscord

@NidheeshaT
Copy link
Collaborator Author

It's ok, it's working now link of your username is not directing to your DM, here is my username -> mynkscord

Can't find your username, says I need the 4 digit code also. Here's mine "sui3id3#0"

@Mayank-Sharma17
Copy link

Can't find your username, says I need the 4 digit code also. Here's mine "sui3id3#0" ok

I set up the bot, this what I figure out :
when I DM the bot the message is forwarded anonymously in the channel, but when I sent message in the channel that message was not deleted but again forwarded anonymously by the bot, it's a bug ?

@NidheeshaT
Copy link
Collaborator Author

It works for in your test server , the message gets deleted. Check the permissions of the Bot once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants