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

Add support for Spacebar/Fosscord #298

Closed
CE1CECL opened this issue Aug 5, 2022 · 3 comments
Closed

Add support for Spacebar/Fosscord #298

CE1CECL opened this issue Aug 5, 2022 · 3 comments
Labels
status: invalid Not a valid issue. type: enhancement Features and feature requests.

Comments

@CE1CECL
Copy link

CE1CECL commented Aug 5, 2022

Describe the bug
I am trying to load TicTacToe into fosscord, and I get Cannot operate because of a lack of permissions in the channel #fosscord in console, even after changing all discord.js to both fosscord.js or fosscord-gopnik. But I can do !ttt @Myself and its will say cannot challenge user message as normal, but nothing else works. I can't even use another person and use !ttt @Someone assuming !ttt is my tictactoe command.

To Reproduce
Steps to reproduce the behavior:

  1. Install discord-tictactoe, fosscord-gopnik with npm i
  2. change my discord.js to fosscord-gopnik and add to the main bot

const client = new Client({
disableMentions: "everyone",
restTimeOffset: 0,
intents: 3276799,
http: {
version: 9,
agent: {},
api: 'http://localhost:890/api',
cdn: 'http://localhost:890',
invite: 'http://localhost:890/invite',
template: 'http://localhost:890',
headers: null,
scheduledEvent: 'http://localhost:890/events'
}
});

client.login(TOKEN);
const TicTacToe = require('discord-tictactoe');

new TicTacToe({ language: 'en', token: token, command: "ttt", commandOptionName: "opponent", textCommand: "!ttt", requestExpireTime: 30, requestCooldownTime: 0, requestReactions: true, simultaneousGames: true, gameExpireTime: 30, gameBoardReactions: false, gameBoardDelete: false, gameBoardDisableButtons: false}).attach(client);

  1. Run the bot, i did also change things in discord-tictactoe's node_modules folder to the gopnik and change http. You also have to change node:https to node:http if you want to use your own instance on http inside discord.js since gopnik is just a patch for fosscord.

Expected behavior
At least reactions should work right now, due to fosscord being in development, since its pretty basic. Tho this config works fine on discord.com with the gopnik module and apis changed pointing to it.

Versions

Please ensure you are running up to date software before making a bug report. Deprecated versions will not receive support.

discord-tictactoe version:3.0.0
discord.js version:13.9.2
Node.js version:16.16.0

@CE1CECL CE1CECL added the bug: unconfirmed Potential bugs that need replicating to verify. label Aug 5, 2022
@CE1CECL
Copy link
Author

CE1CECL commented Aug 6, 2022

I am going to close this because I was getting a little too ahead of myself, 2.0.3 gives a a debug error, of either
TypeError: Cannot read properties of null (reading 'displayName') or TypeError: Cannot read properties of null (reading 'startsWith')
and fosscord.js related is so buggy right now, you have to currently restart the server to start the bot and do the bot startup quick enough.

@CE1CECL CE1CECL closed this as completed Aug 6, 2022
@CE1CECL CE1CECL closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2022
@CE1CECL
Copy link
Author

CE1CECL commented Mar 12, 2023

I got it to somewhat work: https://github.com/Mellick-Bot/discord-tictactoe
There are still bugs here and there, but overall, it is playable!

@CE1CECL CE1CECL reopened this Mar 12, 2023
@utarwyn
Copy link
Owner

utarwyn commented Apr 28, 2023

Hello! I have not planned to add support for Fosscord/Spacebar in a near future. The project is in a very alpha stage, and it is currently rebranded. I think we need to wait for the tool to stabilize (and to have a dedicated JavaScript SDK) and then I might reconsider supporting this platform 😄

@utarwyn utarwyn closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@utarwyn utarwyn added status: invalid Not a valid issue. type: enhancement Features and feature requests. and removed bug: unconfirmed Potential bugs that need replicating to verify. labels Apr 28, 2023
@utarwyn utarwyn changed the title Cannot operate because of a lack of permissions in the channel #fosscord Add support for Spacebar/Fosscord Apr 28, 2023
@utarwyn utarwyn pinned this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid Not a valid issue. type: enhancement Features and feature requests.
Projects
None yet
Development

No branches or pull requests

2 participants