[GH-ISSUE #1] dice erroring trying to register tools when tools don't exist #3

Closed
opened 2026-10-15 13:25:05 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @EntranceJew on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/SillyTavern/Extension-Dice/issues/1

github.com/SillyTavern/Extension-Dice@0a94b53ff8/index.js (L100)

this is erroring on the release branch:

Dice: Error registering function tools TypeError: registerFunctionTool is not a function
    registerFunctionTools http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:118
    <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:136
    jQuery 11
    <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:134
index.js:130:17
    registerFunctionTools http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:130
    <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:136
    jQuery 11
    <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:134
Originally created by @EntranceJew on GitHub (Oct 12, 2024). Original GitHub issue: https://github.com/SillyTavern/Extension-Dice/issues/1 https://github.com/SillyTavern/Extension-Dice/blob/0a94b53ff88ea69481baf18cea2248b36d1cfee8/index.js#L100 this is erroring on the release branch: ``` Dice: Error registering function tools TypeError: registerFunctionTool is not a function registerFunctionTools http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:118 <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:136 jQuery 11 <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:134 index.js:130:17 registerFunctionTools http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:130 <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:136 jQuery 11 <anonymous> http://127.0.0.1:8000/scripts/extensions/third-party/Extension-Dice/index.js:134 ```
Author
Owner

@Cohee1207 commented on GitHub (Oct 12, 2024):

The nasty error should be gone. Replaced with a tiny debug log.

<!-- gh-comment-id:2408417871 --> @Cohee1207 commented on GitHub (Oct 12, 2024): The nasty error should be gone. Replaced with a tiny debug log.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-Dice#3
No description provided.