You probably know this and were referring to gummies or something, but it needs to be said that smoking is not advised after a tooth extraction or pretty much any dental work. Not a great idea before hand either as the weed (in any form) can make the drugs that the dentist gives you less effective and coming down from a large dose of those can be a worse pain than the stitches in your mouth.
Using crontab to execute these kinds of quick fixes that don’t really solve the problem so much as reset the countdown to failure are the real Duck tape Linux hacks.