Hello, I’ve been trying to create a Twitter Bot but I can’t seem to get the basis of it to work. All I want from this bot is to be able to upload images to Twitter but I can’t even connect for some reason and If there’s meant to be some sort of Build/Config file stuff you were meant to do I haven’t
Any help is much appreciated, Thanks in advance
local twitter = require("plugin.twitter") twitter.init("API\_KEY\_GOES\_HERE", "API\_SECRET\_GOES\_HERE") -- replace API\_KEY & API\_SECRET with your Twitter app's API Key & API Secret local function onSuccess() print("Twitter user " .. twitter.user.screenName .. " successfully logged in!") end local function onFail() print("Twitter login attempt failed or was cancelled by user.") end twitter.login(onSuccess, onFail) local function callback() print("Logout Successful") end