summaryrefslogtreecommitdiff
path: root/generate.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate.py')
-rw-r--r--generate.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/generate.py b/generate.py
new file mode 100644
index 0000000..41ed4e3
--- /dev/null
+++ b/generate.py
@@ -0,0 +1,13 @@
+from mastodon import Mastodon
+
+# Replace with your Mastodon instance URL
+api_base_url = 'https://chatwithus.live'
+
+# Create app and get the client credentials
+Mastodon.create_app(
+ 'my_app',
+ api_base_url = api_base_url,
+ to_file = 'clientcred.secret'
+)
+
+print("Client credentials saved to 'clientcred.secret'")