Enable/Disable DND broken on big sur

Hi everybody! I was using this script in the touch bar previously to show a DND icon whenever it was enabled -- now it's not working at all. Any ideas?

"tell application "System Events"
tell application process "SystemUIServer"
try
if exists menu bar item "Do Not Disturb enabled" of menu bar 1 of application process "SystemUIServer" of application "System Events" then
return "1"
else
return "0"
end if
end try
end tell
end tell"


Note: Before bug reporting, please make sure you have tried the latest (alpha) version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

Describe the bug
A clear and concise description of what the bug is.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

Device information:

  • Type of Mac:
  • macOS version:
  • BetterTouchTool version: (please post the exact version - not just "the latest one")

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

Hey wanted to see if anybody was able to find a fix for this